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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e523-4098f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e523-4098f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?