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

13 views
Skip to first unread message

Ancient Programmer

unread,
Oct 18, 2016, 10:55:12 AM10/18/16
to 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!





Reply all
Reply to author
Forward
0 new messages