Skip to content

Some TCK tests expect the 'data' response field when it shouldn't be there #579

Open
@jmartisk

Description

@jmartisk

https://spec.graphql.org/draft/#sec-Response-Format

If the request included execution, the response map must contain an entry with key data. The value of this entry is described in the “Data” section. If the request failed before execution due to a syntax error, missing information, or validation error, this entry must not be present.

So expecting data:null to be present in the response is against the GraphQL specification.

This affects at least invalidEnumValue, unknownQuery, unknownField, createNewNullNamedHero, createNewUnnamedHero, invalidDataTypeValue, unknownMutation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions