$addToSet (aggregation)

$addToSet

Returns an array of all the values found in the selected field among the documents in that group. Every unique value only appears once in the result set. There is no ordering guarantee for the output documents.

MongoDB Manual (Index)

关于

生态系统

格式

资源