-
Notifications
You must be signed in to change notification settings - Fork 295
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
[CodeGen] Unable to supply arguments for fields in projection nor supply aliases #63
Comments
We don't support this type of query currently. Will look into adding this as a new feature. |
I believe this is a codegen issue. Should this issue be closed and linked to a new one on https://github.com/Netflix/dgs-codegen for better tracking? |
Yes, sure. That is a better place to track this. |
@srinivasankavitha. New dgs-codegen issue created and linked so this one can be closed. Thanks! |
Moved to codegen repo, closing this issue. |
@deadpool333999 would you be interested in reviewing Netflix/dgs-codegen#69 to see if that meets your needs? |
Inspecting the generated code, looks like there is no ability to supply arguments to fields in projections nor is there ability to supply aliases either.
https://graphql.org/learn/queries/#arguments
https://graphql.org/learn/queries/#aliases
This behavior can be reproduced by tweaking the example from the Getting started guide:
type Votes { starRating(min: Float): Float nrOfVotes: Int }
After generating for this example, there is no way to set
min
on the fieldstarRating
via theTicksEdgesNodeRouteVotesProjection.java
methods.The text was updated successfully, but these errors were encountered: