I have a mutation ``` async signup(parent, args, c...
# orm-help
n
I have a mutation
Copy code
async signup(parent, args, ctx, info) {
    // lowercase their email
    args.email = args.email.toLowerCase();
    // hash their password
    const password = await bcrypt.hash(args.password, 10);
    const user = await ctx.db.mutation.createUser(
      {
        data: {
          ...args,
          password
        }
      },
      info
    );
    return {
      user, // is always undefined
      token: utils.getToken(user)
    };
  }
f
Try to remove info on createUser const user = await ctx.db.mutation.createUser( { data: { ...args, password } } ); But for nested user schema you have to add resolver for SignupResponse: { user: async (source, args, ctx, info) => { .... }, } See schema here: https://github.com/prisma-cms/server/blob/master/src/modules/schema/api/mutation.graphql and resolvers here: https://github.com/prisma-cms/server/blob/master/src/modules/user/index.js#L123 and here: https://github.com/prisma-cms/server/blob/master/src/modules/user/index.js#L655-L668