I’ve got json like below, stored in mongodb:
{
createdAt: 1641840199,
name: 'hello'
projects: [ new ObjectId("61dc99b2fdfbd72f33d4d699") ]
}
in projects
array i’ve got an reference to the documents with project. And now i’ve got a question, how to return an array of this objects (full objects, not only it reference id).
PS. I’m using mongodb
library, i do not like moongose
.
Thanks for any help!