Open ThisIsMissEm opened 6 years ago
This is great! Especially if users have stable schemas somewhere!
Curious if we just show this approach or do we build it in!
I'd be inclined to build it in; maybe you could do something like a "record" mode which captures the responses from the origin & caches them locally on disk.
But I think being able to specify a "schema URL" would help greatly for people just getting started
yeah that'd be great, just need to figure out how to do async work inside a decorator!
Found this article really helpful: https://www.freecodecamp.org/news/a-new-approach-to-mocking-graphql-data-1ef49de3d491/
Using both the MockedProvider for mock data and custom Loading and Error providers for those states is quite nice.