I'm having a bit of an issue here, as I'm trying to wrap my head around the usage of $lookup when doing a query through multiple collections, as explained here: https://stackoverflow.com/a/43653679 and here: https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/
Got 3 collections:
Users - where can use 'email' field
Config - where can use 'vpn' field
Firmware - where can use 'version' field
My intent is to count the number of users that match these conditions:
- email =! @yahoo.com,@gmail.com,@hotmail.com
- vpn is ON
- version is 123
Can you please help me understand how my query should look? Thanks a lot!