Skip to content

GraphQL App returns 400 #133

@sebastiandev

Description

@sebastiandev

GraphQL Apps should always return 200, even when there are errors. That is because a resolver might have failed but others might have been completed successfully so there will be data in the response. The 400 is reserved for graphql parsing errors.

This line here is causing tartiflette-asgi to return 400 if errors is populated. Removing it should bring the expected behavior.

Is there any reason why this convention is not followed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions