Skip to content

Have an option to return multiple aliases for the same field #501

Open
@pkese

Description

@pkese

Currently we allow returning only as many fields as defined in the schema using Define.Object.

However GraphQL allows for querying additional output fields by aliasing existing ones.

query {
  People {
    name
    friends
    girlFriends: friends @filter(gender: Female)
  }
}

Notice how friends and girlFriends both refer to the same underlying friends field.

Currently this library does not provide for this functionality:
it does return both friends and girlFriends but both have identical content.

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