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

Select only fields requested by graphql #4

Open
Secretmapper opened this issue Dec 2, 2021 · 1 comment
Open

Select only fields requested by graphql #4

Secretmapper opened this issue Dec 2, 2021 · 1 comment

Comments

@Secretmapper
Copy link

Currently, everything is returned. Can we use info to only select the specific columns we want?

The main problem is this would load all data which is a problem if the properties are expensive to compute (ie. sqlalchemy)

@jokull
Copy link
Owner

jokull commented Dec 2, 2021

This is more of an issue on the depth level when you traverse relationships than opting in and out of columns for rows fetched. That being said, sure ... we can maintain a branch on this repo that shows how to achieve column level granularity for selection - based on the GraphQL query. I wouldn't do that level of optimization by default though.

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

2 participants