OData IN operator in $filter
Closed this issue · 0 comments
buchatsky commented
jinqu-odata version
1.1.3
Current behavior
Not available
Proposed behavior
OData IN operator in $filter clause implemented as an Array.includes() method of JS, so that JS expression [value1,value2, valueN].includes(field)
is converted to odata field in (value1,value2, valueN)
, e.g.
service.companies().where((c) => ["Netflix","Tesla"].includes(c.name));
to
api/Companies?$filter=name in ('Netflix','Tesla')
PS. Already implemented in my repository on the master branch (and also all past commits are merged into master)