Open anthonator opened 6 years ago
I totally agree that would be great! I added some more documentation around mocking. #363 adds a little and points at the graphql-tools mocking functions. Could you take a look and see what should be added there?
/label docs
It would be good to have some examples of mocking for
apollo-link-schema
. Currently, the mock examples aren't very helpful:It would also be good to have some different mock scenarios. For example, mocks that demonstrate:
graphQLErrors
networkErrors
I'm assuming that mocks are expected to be functions that either return a payload or throw an
ApolloError
. Others may need some more guidance.