unique? off docum says it's not unique output
so I need unique records only, how can i check it?
add $group stage with_id as you uniq id and $first or $last operators to get doc body ($$ROOT variable like in https://docs.mongodb.com/manual/reference/operator/aggregation/group/#group-documents-by-author)
Обсуждают сегодня