I have two tables on mongodb. I needs to compare the two tables based on the criteria.
vendor table
{ vendorId : 1, name : \'vendor-1\