-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
Need to support OR statement in REST API, and to build right query string for that.
In some business case we have to filter the document with OR condition like below for e.g.;
From employee
Filter position == 'Manager' OR age >= 50
How to generate such queries with the parser and how to define such condition in query string ?.
Currently multiple query parameters specified in the query string is generating with AND condition only, but definitely there is need of OR also. However we can specify this condition as filter like this
{ $or: [ { quantity: { $lt: 20 } }, { price: 10 } ] } but need is to simplify this in standard query format.
Some thing like ?position=Manager&!age>=50 (where ! internally converts to OR).
Any option available?.
Reactions are currently unavailable