You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My API includes mutations that don't return any data. They're effectively requests for a low-priority async operation, and they return almost immediately with no information, by just returning null.
That's works fine and its perfectly valid GraphQL as far as I'm aware, but this library rejects these responses, due to
My API includes mutations that don't return any data. They're effectively requests for a low-priority async operation, and they return almost immediately with no information, by just returning
null
.That's works fine and its perfectly valid GraphQL as far as I'm aware, but this library rejects these responses, due to
fetchql/src/index.js
Lines 192 to 196 in 07d08be
In that code, a successful response that has no errors but which returns a
{ myOperation: null }
result will throwundefined
.I don't think this case should throw. Even if it does, it should probably throw something clearer than
undefined
.The text was updated successfully, but these errors were encountered: