Question: Is there a way to mock some GraphQL types/queries/mutations/subscriptions while 'forwarding' the rest to an existing GraphQL server?
Situation: The application has a schema, part of which has been implemented on the server and the rest is yet to be developed. Working on the frontend sometimes creates a dependency on the backend team which I'm trying to address.
Target setup: The setup in question should 'forward' all requests to the existing GraphQL server except the ones I want mocked. So for parts that have been implemented on the server (user auth, for example), the actual server is used while for parts that have not been implemented on the server, I can use mocked responses.
I've tried searching and while I found ways of creating a mock GraphQL server, I couldn't find something that does it this way.
I'm open to writing some code to make this happen but being new to GraphQL, I figured asking about this first would give me some helpful pointers on how to tackle this.
Fwiw, the frontend uses Apollo GraphQL (with React) and the backend uses Absinthe (with Elixir/Phoenix)