-
Notifications
You must be signed in to change notification settings - Fork 45
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
Can we infer bounds on generic QueryFragments #709
Labels
✨ enhancement
New feature or request
Milestone
Comments
I think the logic for this is roughly:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#708 asked if it's possible to make the response type in a QueryFragment generic. It seems possible at the moment, but you have to specify bounds on the generic parameters (and the variable fields type - which is a bit unclear) to get it to work.
I'm wondering if it would be possible to add these bounds automatically... Needs some thought - my initial experiment suggests it would be possible, but there might be some downsides that need to be considered.
In particular we'd need to be careful to only add bounds for types that actually need them - seems like it would be possible to have a parameter that didn't need to be
QueryFragment
, so need to make sure we don't add bounds on those parameters.The text was updated successfully, but these errors were encountered: