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

Support injecting sub-field names via @GraphQLEnvironment Set<String> in all cases #9

Open
kaqqao opened this issue Jul 28, 2017 · 1 comment

Comments

@kaqqao
Copy link
Member

kaqqao commented Jul 28, 2017

Currently, sub-field names can be injected via @GraphQLEnvironment Set<String> subSelection only when the current field is of GraphQLObjectType. It injects an empty set for interfaces, unions.
Knowing the sub-selection ahead of time can be important in order to optimizes the fetching, e.g. "SELECT subFiel1, subField2 FROM table" instead of SELECT * FROM table.

Should be implemented in grapqhl-spqr first and then submitted as a PR to graphql-java as the limitation comes from there.

@kaqqao kaqqao added this to the v1.0.0 milestone Nov 19, 2017
@kaqqao kaqqao removed this from the v1.0.0 milestone Mar 6, 2018
@t0ry
Copy link

t0ry commented Sep 11, 2020

Hi there,

@kaqqao is there any progress on this?

My issues is that when aliases are used it is impossible to get real name of asked subSelection item but alias instead.
Is there any possibility to get real name?

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

No branches or pull requests

2 participants