NoSQL databases provide looser consistency restrictions than traditional SQL databases. By requiring fewer relational constraints and consistency checks, NoSQL databases often offer performance and scaling benefits. Yet these databases are still potentially vulnerable to injection attacks, even if they aren't using the traditional SQL syntax.
Practice
Authentication Bypass
Using not equal ($ne) or greater ($gt) we can try to bypass authentication
We can use $nin (not in) if you don't want to match with some values.
#<Matches non of the values of the array> (not test and not admin){"username":{"$nin":["admin", "test"]}, "username":{"$regex": "^user" } ,"password":{"$ne":"1"}}
MangoDB Injection
You may try to make boolean based injection on MongoDB with following payloads