pasa
04/08/2018, 4:43 PMtype Mutation {
createDraft(title: String!, text: String): Post
deletePost(id: ID!): Post
publish(id: ID!): Post
createSite(urlhash: String!): Site
}
and to index.js:
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:
mutation{
createSite(urlhash: "dqwda")
{id}
}