db.yourCollectionName.aggregate([ { $project: { keys: { $objectToArray: "$$ROOT" } } }, { $unwind: "$keys" }, { $group: { _id: null, allKeys: { $addToSet: "$keys.k" } } }, { $project: { _id: 0, allKeys: 1 } } ])
Sell My House in Troy | Smart Way to Sell Faster
Want to sell my house in Troy without unnecessary stress? It starts with understanding the local market, setting the right price, and making your…