benawad / apollo-mocked-provider

Automatically mock GraphQL data with a mocked ApolloProvider
MIT License
92 stars 25 forks source link

Feature request: Different custom resolvers for same query #37

Open draxx318 opened 3 years ago

draxx318 commented 3 years ago

I didn't find a way to achieve this so here is my idea: It would be nice to have the possibility to pass different custom resolvers for the same query inside a test. Refetching a query after a mutation is resolved and testing if the UI updated with the second resolvers data would be useful.

petros-zavrakas commented 3 years ago

That would be a nice and really useful feature