How can I use like query in $match ? #8125
-
` const notificationCollection = (this.notificationRepository.dataSource.connector as any).collection("Notification"); var msg="test msg"; I know how to get it done by below method. I am looking for a solution in aggregate function |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Using the underlying MongoDB driver bypasses LoopBack's filter logic. Behind the scenes, |
Beta Was this translation helpful? Give feedback.
Using the underlying MongoDB driver bypasses LoopBack's filter logic.
Behind the scenes,
like
uses MongoDB's$regex
:https://github.com/loopbackio/loopback-connector-mongodb/blob/e985dd7a194ae56fac833adec8ba5efdec5c6c89/lib/mongodb.js#L1042-L1046