I have this two Collections that I use, I need to query from one of the collection using params from the first collection
Collection expamples:
Collection 1 :{
id: 1234,
lastDate : "2020-09-10T08:30:14.960+00:00"
}
Collection 2 :{
site : 1234,
date : "2020-09-10T08:30:14.960+00:00"
}
I need to get the id and "lastDate" from Collection 1 and use it to query on Collection 2
sorry for bad explanation tell if need more info or anything
ADDED SQL equivalent
SELECT * FROM collection2
WHERE site IN (SELECT id FROM collection1) and
date IN (SELECT lastDate FROM collection1);