Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Add mutation placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
sicktastic committed Nov 3, 2017
1 parent 4551944 commit ab4360a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions graphql/schema/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ const RootQuery = new GraphQLObjectType({
}
});

const mutation = new GraphQLObjectType({
name: 'Mutation',
fields: {
addUser: {
type: UserType,
args: {
firstName: { type: GraphQLString },
age: { type: GraphQLInt },
companyId: { type: GraphQLString }
},
resolve() {

}
}
}
});

module.exports = new GraphQLSchema({
query: RootQuery
});

0 comments on commit ab4360a

Please sign in to comment.