Skip to content

GraphQL: Shorthands for fetching only one field of an object #43

Description

@lcdr

Currently the API only supports syntax such as a { b { c } }. This means that to get to c, the client needs to do a bunch of null checks on the surrounding objects, and the serialization is also more complex than need be. We could add support for a shorthand a.b.c to fetch only one field of an object.

Question is how well this would work with the schema, since this would blow up the number of available fields considerably. To limit the schema to something finite we would at the least need to stop when reaching cycles.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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