Mongodb needs to query 2 tables for paging because it needs to restrict the conditions of the second table. How do you write this?
Mongodb is not suitable for multi-table query. Its table structure design is totally different from sql database. It is recommended to be familiar with the table structure design of mongodb to avoid multi-table query.