Skip to content

[GraphQL] Use same Type for Item and Collection item if possible #3059

Description

@lukasluecke

If there are no differences in the serialization for Item and Collection items of a resource, we should use the same type - otherwise things get unnecessarily complicated (e.g. Fragments would have to be duplicated).

Currently it also breaks several "smart" caching systems that rely on the __typename.

This would be similar to how we handle the Type used for Mutations (GraphQl/Type/TypeBuilder.php:104)

Related to #3015.

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