Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support For N level filtering #217

Copy link
Copy link
@KieranTH

Description

@KieranTH
Issue body actions

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!

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.