Created
March 22, 2016 20:20
-
-
Save Pepeye/bb132e61ce764948a5ae to your computer and use it in GitHub Desktop.
Cyclic GraphQL Types
This file contains hidden or 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
| const PersonType = new GraphQLObjectType({ | |
| name: "Person", | |
| fields: () => ({ | |
| friends: { | |
| type: new GraphQLList(PersonType), | |
| resolve() { ... }, | |
| }, | |
| }), | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment