invariant violation must contain a query definition code example
Example: Invariant Violation: mutation option is required. You must specify your GraphQL document in the mutation option.
client.mutate({
mutation: gql`
mutation {
addTeam(input:{name:"Somename", label:"somelabel"}) {
error
status
}
}`,
})