Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Disjunctive/OR queries via the typescript bindingsForum ↗

Disjunctive/OR queries via the typescript bindings

App Development2 posts332 views2 likesLast activity Jun 2021
BA
bartcantOP
Jun 2021

Is it possible to use an OR statement in a filter via the typescript bindings?

object: `() => ({country.state: "yourstate1" OR "yourstate2", city: "yourcity"})`
CO
cocreature
Jun 2021

In the non-streaming endpoints there is currently no option for disjunctive queries so you have to query multiple times and combine the queries on the client side.

For the streaming endpoints, you can pass in a list of queries and the result will include any contracts matching at least one of those queries which allows you to express your example above.

← Back to Discussions