get one distinct field from all documents mongodb code example Example: find distinct in mongodb db.inventory.distinct( "item.sku", { dept: "A" } )