Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Passing DataLoaderRegistry as the query context. This allow us to avo…
…id using the request scope.
- Loading branch information
Showing
11 changed files
with
55 additions
and
33 deletions.
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
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
12 changes: 12 additions & 0 deletions
12
.../main/java/com/google/api/graphql/examples/library/graphqlserver/client/ClientModule.java
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
package com.google.api.graphql.examples.library.graphqlserver.client; | |||
|
|||
import com.google.inject.AbstractModule; | |||
|
|||
/** Installs all of the client modules. */ | |||
public final class ClientModule extends AbstractModule { | |||
@Override | |||
protected void configure() { | |||
install(new BookClientModule()); | |||
install(new ShelfClientModule()); | |||
} | |||
} |
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
14 changes: 14 additions & 0 deletions
14
.../main/java/com/google/api/graphql/examples/library/graphqlserver/schema/SchemaModule.java
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
package com.google.api.graphql.examples.library.graphqlserver.schema; | |||
|
|||
import com.google.inject.AbstractModule; | |||
|
|||
/** Install all of the schema modules. */ | |||
public final class SchemaModule extends AbstractModule { | |||
@Override | |||
protected void configure() { | |||
install(new BookSchemaModule()); // Creates queries and mutations for the Book service | |||
install(new ShelfSchemaModule()); // Creates queries and mutations for the Shelf service | |||
install(new LibrarySchemaModule()); // Joins together Shelf and Book services | |||
install(new SeedLibrarySchemaModule()); // Fills the Shelf and Book services with data | |||
} | |||
} |
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