Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lcdr opened this issue Jun 23, 2024 · 0 comments
Open

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

lcdr opened this issue Jun 23, 2024 · 0 comments

Comments

@lcdr
Copy link
Contributor

lcdr commented Jun 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant