Filter with not equal operator
kaboume opened this issue · comments
Eric commented
Hi,
I want to filter documents not equal to the role "admin" :
So I wrote this line :
filter = {role: "$ne: 'admin'"};
but no documents are returned?
Gabriel Rodríguez Flores commented
I think you are missing some syntax. Try:
filter = {role: { "$ne": 'admin' } };
Aravind NC commented
Please reopen if the issue exists.