I am using Mongo DB with YII2 (PHP framework), I am fetching records from database(Mongo) and I have one word and searching in description, if word present in description so I don’t have to fetch such record from database(Mongo).
Please let me know Mongo DB query and how that I have to add YII2 .
Please find below query in MySQL and same I need in Mongo DB.
select * from product where description not like “%Soap%”
Request you to please help.