jaystack / odata-v4-mongodb

This server component lets you process OData requests over a MongoDB database
30 stars 24 forks source link

filtering with combination of contains and tolower doesn't work #9

Closed andriy-f closed 7 years ago

andriy-f commented 7 years ago

Hi, filtering with combination of contains and tolower doesn't return expected results. version: 0.1.11 example request ?$filter=contains(tolower(Name), 'pro')

lazarv commented 7 years ago

Hi @andriy-f, the tolower method call expression is not implemented in the mongodb connector. It should throw an error.

andriy-f commented 7 years ago

It doesn't throw error at the moment. It returns all records

lazarv commented 7 years ago

@andriy-f the fix is available on npm, please use latest version (0.1.12).

andriy-f commented 7 years ago

Indeed. Thanks.