Skip to content

Send status 200 as soon as query parse is valid #3226

@wmertens

Description

@wmertens

Is your feature request related to a problem? Please describe.

Our nginx proxy automatically sends 502 if the server takes too long to respond. This is a good feature IMHO.

However, if a mutation takes a long time to process, that means the caller will get 502 instead of the result.

Describe the solution you'd like

As soon as the query is parsed and deemed valid, before running the resolvers, yoga should already respond with 200.

Describe alternatives you've considered

Complicated async setups with subscriptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/discussionDiscussion, question or feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions