NOT LIKE sql query to mongoDB

How to do NOT LIKE in mongoDB?

$regex and $not does not work together?

thanks

{name: {$not: /pattern/}}

it doesn’t work well with $regex

I like these issue descriptions: it does not work
what is not working for you? It is 100% working

1 Like

The query I gave you above works fine, I tested it.