diff --git a/graphql/schema/schema.js b/graphql/schema/schema.js index acc1c98..5e33891 100644 --- a/graphql/schema/schema.js +++ b/graphql/schema/schema.js @@ -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 });