anyone have a sample of resolvers for mutation
# prisma-whats-new
e
anyone have a sample of resolvers for mutation
h
Copy code
export const userMutation = {
  updateUserImage(parent, { id, imageId }, ctx: Context, info) {
    return ctx.db.mutation.updateUser({
      where: {
        id
      },
      data: {
        image: {
          connect: {
            id: imageId
          }
        }
      }
    }, info)
  }
}