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

Get selection fields from Lookahead #643

Merged
merged 3 commits into from
Sep 28, 2021
Merged

Conversation

oeed
Copy link
Contributor

@oeed oeed commented Sep 26, 2021

In much the same was as it's useful to get Lookahead from SelectionField #557, the inverse is also quite useful.

This adds a function that generates all SelectionFields fo each field in the Lookahead. I decided to do this over implementing From, but I'm open to changing that.

@sunli829
Copy link
Collaborator

Thank you, it would be better if you can add documentation to this function. 😁

@oeed
Copy link
Contributor Author

oeed commented Sep 28, 2021

Yes good point! Done

@sunli829
Copy link
Collaborator

Thank you! 😁

@sunli829 sunli829 merged commit e863431 into async-graphql:master Sep 28, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants