How does mongodb combine several collections to query together

clipboard.png
there are two tables in the database with different names and the same data format.
if I want to check the data in both tables that meet the criteria at the same time, except that I check them separately and return a collection. Is there any other way

Mar.23,2021

use the $lookup of the pipeline model
$lookup

Menu