Skip to content

Itemfilter filter based on a property that is an array of objects #1922

@lubojr

Description

@lubojr

ItemFilter could filter results based on a property that is an array of objects and I want to match all items where a prop of an object in the array of objects matches the selected value

e.g.

"items": [
  {
    "providers": [
      { "name": "provider1" },
      { "name": "provider2" }
    ]
  }
]

and the filter would filter on unique providers[].name

Here's the file that gets a nested property or a function: https://github.com/EOX-A/EOxElements/blob/main/elements/itemfilter/src/helpers/get-value.js#L8, we'd need to replace that with something that also supports arrays

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions