-
Notifications
You must be signed in to change notification settings - Fork 46
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
chore(parser): remove recursion in field parsing, fixes #514 #519
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
how is the fuzzer? is it happy? |
I forgot about it and it accidentally ran overnight so I'm pretty sure it's happy lol Just need to tweak some of the tests here that expect the old counting! |
Heh I couldn't get to the bottom of the issue where we continued parsing after a recursion limit was reached, but I think I just put the check in the wrong place yesterday. Got it right with fresh eyes this morning 😇 |
excellllllent ^_^ |
The
selection::selection_set
parser already supports parsing multiple fields, so it looks like this recursion is unnecessary. Tests pass right now but I'll also run the fuzzer for a bit to make sure.