const graphql = require('graphql');
const {
  GraphQLObjectType,
  GraphQLString
} = graphql;
const UserType = require('./types/user_type');
const AuthService = require('../services/auth');

const mutation = new GraphQLObjectType({
  name: 'Mutation',
  fields: {
    singup: {
      type: UserType,
      args: {
        email: { type: GraphQLString },
        password: { type: GraphQLString }
      },
      resolve(parentValue, { email, password }, req) {
        AuthService.signup({ email, password, req });
      }
    },
    logout: {
      type: UserType,
      resolve(parentValue, args, req) {
        const { user } = req;
        req.logout();
        return user;
      }
    }
  } 
});

module.exports = mutation;
@@ -675,24 +675,294 @@
 er;%0A      %7D%0A
+    %7D,%0A    login: %7B%0A      type: UserType,%0A      args: %7B%0A        email: %7B type: GraphQLString %7D,%0A        password: %7B type: GraphQLString %7D%0A      %7D,%0A      resolve(parentValue, %7B email, password %7D, req) %7B%0A        return AuthService.login(%7B email, password, req %7D);%0A      %7D%0A
     %7D%0A  %7D %0A%7D

Add login mutation