-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add an iterator over all the required properties of a Vertex #449
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.
This is headed in a good direction, well done!
trustfall_core/test_data/tests/valid_queries/required_properties.graphql.ron
Outdated
Show resolved
Hide resolved
…es.graphql.ron Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
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.
Doing great! 🎉 I think just docs and tests left at this point.
trustfall_core/test_data/tests/valid_queries/required_properties_list_fold.graphql.ron
Outdated
Show resolved
Hide resolved
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.
Nicely done!
In order to enable adapters to only fetch the required properties (useful for network calls, such as GraphQL adapters) we need to expose all the required properties of that vertex.
This PR introduces a method to retrieve the information (output, filtered, and tagged properties). It also introduces a new struct to represent those properties.
It also introduces tests for the new feature.