MongoDB: How to add existing object to the collection as an field by _id

24 Views Asked by At

I already add document/image/mp3 file into db by GridFS, but now i want to use this object in my collection as a value of the field. I add objects to the collection by InsertMany command in mongosh. How I can do this? Thank you for your patience and attention!

Sorry, I'm newbee at MongoDB.

0

There are 0 best solutions below