Skip to content

Conversation

@andimarek
Copy link
Member

graphql-java should provide a good way to traverse a Document/Query. This makes the NodeTraverser public and adds special pre/post Order methods for easy usage.

@andimarek andimarek requested a review from bbakerman June 23, 2018 09:29
@andimarek
Copy link
Member Author

This includes making some parts of the general Traverser public, but not everything.

@andimarek
Copy link
Member Author

@bbakerman @gkesler @exbe I would like to link to some good explanation about general traversal and for example pre/post order is a special case of depthFirst. Any recommendations? thx

Copy link
Member

@bbakerman bbakerman left a comment

Choose a reason for hiding this comment

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

Looks good to me - nothing stands out as a problem

@bbakerman bbakerman added this to the 10.0 milestone Jun 25, 2018
@exbe
Copy link
Contributor

exbe commented Jun 25, 2018

@andimarek Are you looking for an example, explanation or something else?

Updated: I think it make sense to add similar special cases for breadthFirst too as a legitimate api.

@andimarek andimarek merged commit 795c232 into master Jul 4, 2018
@andimarek andimarek deleted the node-traverser branch July 12, 2018 11:27
exbe pushed a commit to intuit/graphql-java that referenced this pull request Jul 27, 2018
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.

4 participants