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.

--

Software Engineer at Workpop, Inc.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhi Aiyer

Abhi Aiyer

Software Engineer at Workpop, Inc.