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

Support For N level filtering #217

Open
KieranTH opened this issue Jul 3, 2024 · 0 comments
Open

Support For N level filtering #217

KieranTH opened this issue Jul 3, 2024 · 0 comments
Labels

Comments

@KieranTH
Copy link

KieranTH commented Jul 3, 2024

Motivation

I would like to be able to filter paths to multiple degrees. This is mainly associated with filtering a dataset based on heavily nested fields, of which may also be arrays.

Current behavior

Does not support - Example:

JSON:

{
  "name": "Test",
  "grouping": {
    "nested_1": [
      {
        "name": "First Level Nest",
        "nested_2": [
          {
            "name": "Second Level Nest"
          }
        ]
      }
    ]
  }
}

Path:
$..grouping[?(@.nested_1.nested_2[?(@.name == "Second Level Nest")])]

Desired behavior

Being able to filter to an Nth degree of a dataset through nested filter queries.

If anyone has any idea around this, or possible alternative approaches which don't heavily degrade performance, would love to hear them!

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

No branches or pull requests

1 participant