Skip to content

Selective "passthrough" of queries to server #47

Description

@knownasilya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions