Hello there, noob question incoming... I'm new to ...
# prisma-whats-new
p
Hello there, noob question incoming... I'm new to prisma and just tried to create a mutation resolver. I added it to schema.graphql:
Copy code
type Mutation {
  createDraft(title: String!, text: String): Post
  deletePost(id: ID!): Post
  publish(id: ID!): Post
  createSite(urlhash: String!): Site
}
and to index.js:
Copy code
Mutation: {
    createSite(parent, { urlhash }, ctx, info) {
      return ctx.db.mutation.createSite(
        {
          data: {
            urlhash
          },
        },
        info,
      )
    },
  },
But I still get the error "Unknown argument 'urlhash' on field 'createSite'", if I call the mutation like this:
Copy code
mutation{
  createSite(urlhash: "dqwda")
  {id}
}