This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation, git workflow, and DockerFile for crystal library
- Loading branch information
1 parent
4e6c951
commit 09fe8b8
Showing
9 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Crystal Library Service | ||
|
||
This service keeps track of all the crystals used for expeiments at the Diamond Light Source. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/// The crystal wells modules | ||
pub mod crystal_wells; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
/// The cyrstal wells resolver module | ||
pub mod crystal_wells_res; | ||
|
||
use async_graphql::{EmptySubscription, MergedObject, Schema, SchemaBuilder}; | ||
use crystal_wells_res::{CrystalMutation, CrystalQuery}; | ||
|
||
/// Combines all query resolvers into a single GraphQL `Query` type. | ||
#[derive(Debug, Clone, MergedObject, Default)] | ||
pub struct Query(CrystalQuery); | ||
|
||
/// Combines all mutation resolvers into a single GraphQL `Query` type. | ||
#[derive(Debug, Clone, MergedObject, Default)] | ||
pub struct Mutation(CrystalMutation); | ||
|
||
/// Type alias for the complete GraphQL schema. | ||
pub type RootSchema = Schema<Query, Mutation, EmptySubscription>; | ||
|
||
/// This function initializes the schema with default instances of `Query`, | ||
/// `Mutation`, and `EmptySubscription`. | ||
pub fn root_schema_builder() -> SchemaBuilder<Query, Mutation, EmptySubscription> { | ||
Schema::build(Query::default(), Mutation::default(), EmptySubscription).enable_federation() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters