GraphQL: Mutations

The basic syntax of a mutation query:

type Mutation {
  setMessage(message: String): String
}

type Query {
  getMessage: String
}

Leave a Reply

Your email address will not be published. Required fields are marked *