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

Add subquery count #217

Closed
fabricereix opened this issue Jun 23, 2021 · 1 comment
Closed

Add subquery count #217

fabricereix opened this issue Jun 23, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@fabricereix
Copy link
Collaborator

Add an optional subquery to a query.

Currently, only capture could have a subquery, it is better to generalize to the query so that it can be used in both captures and asserts.

Define the subquery count which will be applied to a collection returned by the main query.
The count result can then be used with existing predicates such as equals or greaterThan.
The existing predicates such as countEquals will be therefore deprecated.

jsonpath "$.books" count == 10
jsonpath "$.books" count > 10
@fabricereix
Copy link
Collaborator Author

implemented in #219

@lepapareil lepapareil added this to the 1.3.0 milestone Oct 12, 2021
@lepapareil lepapareil removed the 1.3.0 label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants