Update function receives no data if errors are present on the response and data contains information #345
Unanswered
lobo-tuerto
asked this question in
Q&A
Replies: 1 comment
-
See: https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-config-options-errorPolicy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When receiving a response that contains both
data
anerrors
keys, theupdate (data)
function receives an empty object. Even if the network response contains data insidedata
.When receiving this as a response:
update (data)
is populated just fine.When receiving this as a response:
update (data)
receives an empty object, even though data actually contains information.Is this expected?
Beta Was this translation helpful? Give feedback.
All reactions