Skip to content

Calculating query complexity #17

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

Merged
merged 4 commits into from
May 18, 2019
Merged

Calculating query complexity #17

merged 4 commits into from
May 18, 2019

Conversation

BeeHiveJava
Copy link
Contributor

This pull request adds a helper function to calculate query complexity independently from query execution, see #16.

I was unsure if other tests should also use this functionality. Some don't just use the complexity value, but also errors found in ValidationContext after validating, so that would require some modification.

Copy link
Collaborator

@ivome ivome left a comment

Choose a reason for hiding this comment

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

Thank you for the pull request. This looks good!
Could you maybe add a small example and documentation to the README so people know this functionality exists?

@BeeHiveJava
Copy link
Contributor Author

Added an example and fixed the test to take a value that actually gets calculated.

@ivome ivome merged commit bdd4b65 into slicknode:master May 18, 2019
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.

2 participants