I have a JSON snippet stored in MongoDB that looks like this:
{
createdAt: 1641840199,
name: 'hello'
projects: [ new ObjectId("61dc99b2fdfbd72f33d4d699") ]
}
In the projects
array, I have a reference to documents with project. Now, my question is how to retrieve an array of these objects (full objects, not just their reference ids).
By the way, I am using the MongoDB library and I prefer not to use Mongoose.
Thank you for any assistance!