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

Changed Lookahead to support multiple fields #574

Merged
merged 2 commits into from
Jul 15, 2021

Conversation

oeed
Copy link
Contributor

@oeed oeed commented Jul 15, 2021

Fixes #573

.iter()
.find_map(|item| match &item.node {
) {
for item in &selection_set.items {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've done this imperatively. Tried doing this with iterators but I'm pretty sure you need to use a Box<dyn Iterator> because it's recursive. Happy to change if there's a better way though.

@sunli829
Copy link
Collaborator

You are right, I really didn't think about this. 👏🏻

@sunli829
Copy link
Collaborator

If you are free, please help update CHANGELOG. 🙂

@oeed
Copy link
Contributor Author

oeed commented Jul 15, 2021

No worries, have added

@sunli829
Copy link
Collaborator

Thank you so much! 😁

@sunli829 sunli829 merged commit 1218664 into async-graphql:master Jul 15, 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.

Lookahead doesn't allow multiple instances of a subfield
2 participants