[cbmongodb-3.2.x]: Query with "LIKE" operator

13 просмотров
Перейти к первому непрочитанному сообщению

Ancient Programmer

не прочитано,
18 окт. 2016 г., 10:55:1218.10.2016
– ColdBox Platform
I was wondering if anyone is able to perform a query with "LIKE" statementoperator using cbmongodb module.

In mongoDB shell, I was able to get results using the following statement:

db.getCollection('job').find({description:/coldfusion/i})


In cbmongodb, I didn't get any results:

job.reset().where("description", "like", "coldfusion");
job.reset().where("description", "like", "/coldfusion/i");


Does cbmongodb support $regex as well?


Thank you!





Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений