We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The issue is that gql is on one endpoint, and if mirage is handling that endpoint how do you do a "passthrough" of select requests to that endpoint.
Maybe if mirage had a passthrough function:
this.passthrough('/api/graphql', (req) => req.body.includes('something')); this.post('/api/graphql', gql);
Or return this.passAlong() or similar inside the post handler based on logic, where if you return it the request continues to server. cc @samselikoff
return this.passAlong()
The text was updated successfully, but these errors were encountered:
Mirage does allow you to supply a callback to passthrough. See https://miragejs.com/api/classes/server/#passthrough. I think this should work.
passthrough
Sorry, something went wrong.
Would love to see this, it would make working with graphql in piecemeal possible.
No branches or pull requests
The issue is that gql is on one endpoint, and if mirage is handling that endpoint how do you do a "passthrough" of select requests to that endpoint.
Maybe if mirage had a passthrough function:
Or
return this.passAlong()
or similar inside the post handler based on logic, where if you return it the request continues to server. cc @samselikoffThe text was updated successfully, but these errors were encountered: