Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active September 5, 2017 15:08
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 matthieu-D/635baa232421138ad62a474e09d2bd7c to your computer and use it in GitHub Desktop.
Save matthieu-D/635baa232421138ad62a474e09d2bd7c to your computer and use it in GitHub Desktop.
var MutationType = new GraphQLObjectType({
name: 'Mutation',
fields: {
create: MutationCreate,
update: MutationUpdate,
deleteUser: MutationDelete
}
});
exports.userSchema = new GraphQLSchema({
query: queryType,
mutation: MutationType
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment