apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.35k stars 2.66k forks source link

useMutation's errorPolicy missing from docs #7320

Open lorensr opened 3 years ago

lorensr commented 3 years ago

https://www.apollographql.com/docs/react/data/mutations/#usemutation-api https://www.apollographql.com/docs/react/api/react/hooks/#params-2

Also, the first link doesn't list:

lnikkila commented 3 years ago

It looks like MutationFunctionOptions seems to be missing errorPolicy as well, although this option seems to work in practice:

https://github.com/apollographql/apollo-client/blob/5b76276e9dfa1d19ee91d043ceb76b5a1d0dbe87/src/react/types/types.ts#L168-L179