Created
April 10, 2016 03:21
-
-
Save clayallsopp/33e1069c1700bd6c8db5e1250a54dc00 to your computer and use it in GitHub Desktop.
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 UserType = new GraphQLObjectType({ | |
name : 'User', | |
fields : { | |
username : { type : GraphQLString } | |
} | |
}); | |
const MovieType = new GraphQLObjectType({ | |
name : 'Movie', | |
fields : { | |
director : { type : GraphQLString } | |
} | |
}); | |
const BookType = new GraphQLObjectType({ | |
name : 'Book', | |
fields : { | |
author : { type : GraphQLString } | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment