I'm trying to list the DataObjects in a class. I want to filter the list of DataObjects based on a conditional query on multiple fields. To select a DataObject based on field1 = xxx or field2 = xxx
For eg: In class Inventory:
+----------------------------------+
| Item | Quantity | Price |
+----------------------------------+
| X | 10 | 30 |
| |
| Y | 20 | 10 |
+----------------------------------+
var filter = {
'Quantity': { '_eq': 10 } OR
'Price': { '_eq': 10 }
};
Select Item with Quantity = 10 or Price = 10. How can achieve this?