get distinct values of field mongo code example Example: find distinct in mongodb db.inventory.distinct( "item.sku", { dept: "A" } )