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

Improve $jsonprune #1710

Closed
Alex-302 opened this issue Dec 22, 2022 · 0 comments
Closed

Improve $jsonprune #1710

Alex-302 opened this issue Dec 22, 2022 · 0 comments

Comments

@Alex-302
Copy link
Member

key-eq, key-substr and has must accept a path as a key.

Sample json:

https://gist.githubusercontent.com/Alex-302/a409d51ea64648c928631412496fade2/raw/25777f258b40334ada46c38beeb34f3dbd1c1e53/%25D1%2585%25D1%2583%25D0%25B5%25D1%2582%25D0%25B0.json

Unsupported query:
$.data.postFeed.elements.edges[?(@.node.__typename=="AdPost")]

Unsupported rule:
||gql.reddit.com^$jsonprune=\$.data.postFeed.elements.edges[?(key-eq node.__typename "adpost")]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants