Skip to content

Instantly share code, notes, and snippets.

@rohan-varma
Created September 3, 2016 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohan-varma/fbe7eae88afff97f5a7dd266974431bb to your computer and use it in GitHub Desktop.
Save rohan-varma/fbe7eae88afff97f5a7dd266974431bb to your computer and use it in GitHub Desktop.
//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