Created
September 3, 2016 11:32
-
-
Save rohan-varma/fbe7eae88afff97f5a7dd266974431bb to your computer and use it in GitHub Desktop.
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
//required objects | |
import { | |
GraphQLSchema, | |
GraphQLObjectType, | |
GraphQLID, | |
GraphQLString, | |
GraphQLNonNull, | |
GraphQLList, | |
GraphQLInterfaceType, | |
} from 'graphql'; | |
//define our move type to have two fields, an id and name. | |
const moveType = new GraphQLObjectType({ | |
name: 'move', | |
fields: () => ({ | |
id: {type: GraphQLString}, | |
name: {type: GraphQLString}, | |
}), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment