Path Operators
Learn how to navigate and access specific elements or properties within a data set using JSONata path operators. Discover the powerful capabilities of operators like Map, Filter, Order-by, Reduce, Wil
JSONata path operators are used for navigating and accessing specific elements or properties within a data set.
Path operators
The operators include:
Configuration
Filter a list according to a value
=$filter(@ctx.datasources.filter-list, function($v){$contains($string($v.status), $string(@ctx.components.filter-list.state.filter != null ? @ctx.components.filter-list.state.filter:'all')) })[]
See When using a filterbest practice.
Be careful when using complex expressions, such as expressions that iterate one datasource across another, as your solution performance could become slower. To avoid this, try to use the datasource queries to get the desired result rather than an expression.
Examples and code snippets
Filtering data

In this example the Filter path operator is used to create a filter for data records marked as Active or Inactive. Example: See the full code sample in GitHub.
Searching data
Write an expression to add a search field when using static data. The character [] at the end is very important. Even one item only will be displayed.
Search: See the full code sample in GitHub.

Last updated
Was this helpful?