Can someone give me an example of comparing the data of two collections.
I have two collections called A and B. B having foreign key reference of A's _id. Please find below:
A:
{
        "_id" : ObjectId("543e4eed974ed51b8ee1821d"),
        "name" : "Technotip",
        "product" : "video tutorial",
        "emp" : [
                "Sathish",
                "Kiran"
        ],
        "videos" : [
                {
                        "mongo" : "mongo videos",
                        "php" : "php videos"
                }
        ]
}
B:
{
        "_id" : ObjectId("543e4fc3974ed51b8ee1821e"),
        "name" : "Stathish",
        "company_id" : ObjectId("543e4eed974ed51b8ee1821d")
}
Can someone please help me to find equivalent values from both collections using joins?
 
    