How Mongodb merges subdocuments through aggregation

in my collection,
has related different documents, and only one field is different between them, assuming field

.

how to merge different related documents into one document
and turn this field into an array of fields [],

is it done through aggregation?

Mar.04,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c2ca45-3334e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c2ca45-3334e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?