node-odata icon indicating copy to clipboard operation
node-odata copied to clipboard

about any/all operators

Open shoringfan10 opened this issue 8 years ago • 1 comments

Hi, I am trying to query and filter the data points in following data structure, by using node-odata,

{
name: abc
data: [{x:1, y:10}, {x:2, y:20}, {x:3, y:30}]
}

Since I noticed the $expand is currently not available in the latest version, I then try to write a query like following, in order to find and return those data points that are less than 2 for their x values.

http://localhost:3000/scatter?$filter=data/any(d:d/x lt 2)

But it keeps saying,

Syntax error at '2)'.

I wonder if any/all operators are currently supported? and alternatively do you have any good idea to do so?

Thanks in advance! Shoring

shoringfan10 avatar Sep 21 '16 13:09 shoringfan10

Not support use any/all keyword to query until current version.

zackyang000 avatar Sep 21 '16 23:09 zackyang000