In GraphQL the return value of a Mutation is bound to a schema. You could do whatever side effect one and return true/false. And if your schema is expecting a Boolean it will work. The point of this is so you always maintain a strict structure of application data. This is even more important for Optimistic updates as the structure we define will help make our apps more slick.