Skip to content

Shouldn't a mutation's "then" data always be defined ? #1264

Answered by JoviDeCroock
strblr asked this question in Q&A
Discussion options

You must be logged in to vote

No, because your mutation can also error out. This could mean that there’s no data coming back, in general when performing mutations it’s best to check whether or not there was an error and notify the user if so, when there’s data you can decide to continue and perform the func you want.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@strblr
Comment options

@kitten
Comment options

@strblr
Comment options

Answer selected by JoviDeCroock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants