Created
January 19, 2017 17:01
-
-
Save Cal30/70b9270e89494a6359481353f6d29cd6 to your computer and use it in GitHub Desktop.
GraphQL Post - HomeWorld Relationship
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
.field(newFieldDefinition() | |
.name("homeworld") | |
.description("Planet where character took birth") | |
.type(new GraphQLTypeReference("Planet")) | |
.dataFetcher(homeworldEmbeddedDataFetcher) | |
.build()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment