Skip to content

How can I use like query in $match ? #8125

Answered by achrinza
vishnukumarps asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vishnukumarps
Comment options

Answer selected by achrinza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants