Database
[{"company":"google","status":"active","offer":{"job":"developer","salary":10000.00},},{"company":"google","status":"active","offer":{"job":"designer","salary":500000.00},},{"company":"amazon","status":"inactive","offer":{"job":"designer","salary":500000.00},}]
Query
db.collection.aggregate([{$group:{_id:{company:"$company"},report:{$addToSet:"$offer"}}}])