Skip to content

Support For N level filtering #217

Open
@KieranTH

Description

@KieranTH

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions