Skip to main content

Using object predicates

An object predicate is an expression written in Using Data Shaping Expression Language.

This predicate is used after a location step, in curly braces, to filter a subset of items according to a Boolean expression. It can be a simple expression or a conditional expression.

For example, in the selector .customer{.rating > 700}.name, {.rating > 700} is an object predicate. This selector filters the customer array to keep only the items in which the value of rating is greater than 700, and for each of these items, it returns the value of the name element.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!