-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MockedResponse
-> newData
to docs
#205
Comments
I'd also like some info about this |
I've seen this addition requested here and on other websites and people have been requesting it for years. I just want to say it's super inconvenient that it hasn't been added to the docs yet. So far, all I can gather about |
Hi @artium-ryanh @stuartjbrown @CarlosGines 👋🏻 |
@bignimbus It does help, thank you! I was able to figure that out with experimentation and I'm glad to know this post can be a resource for people searching for the same thing I was. I'd consider drafting a PR, but I'm not sure where I would make it. Can you link me to the docs repo? |
@artium-ryanh awesome 🚀 I think this file would probably be a good place to start: https://github.com/apollographql/apollo-client/blob/main/docs/source/development-testing/testing.mdx |
I just realised that when providing a
MockedResponse
toMockedProvider
, you can provide anewData
key in theMockedResponse
. This seems to be an alternative to theresult
key.I have found no documentation about it.
My request here is to add this
newData
toMockedProvider
docs.On top of that, if you could leave here a brief explanation of the differences between
newData
andresult
for the meantime, I would appreciate.The text was updated successfully, but these errors were encountered: