Skip to content

Clarify how to merge fields in field selection #347

@kdojeteri

Description

@kdojeteri

Currently the GraphQL spec at https://facebook.github.io/graphql/#sec-Field-Selection-Merging only mention conditions that have to apply in order for fields in a selection to merge. While discussing a fix to an issue ( youshido-php/GraphQL#138 ) the specification was brought up.

It is pretty confusing to infer how to actually merge fields in a selection just from the specs alone, because they only seem to be talking about how to know when multiple fields can merge, and not about how to actually do the merging.

Can we get some more specific documentation on how to merge fields? Can we get some examples of how to merge fields of object types and array types?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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