Subqueries similar to mysql
For example, I want to check the list of articles now, and the articles I have seen before will no longer be displayed.
Db.wenzhang.find ({“red”: {“$ nin”: [data in another table, another find ]}}})
Sql-like select * from tablename where anotin (select a from tablename 2) asac
Please tell me how to use MongoDB to realize such functions, thank you!
Mongo does not support such federated lookups
Suggest to improve your design