Facing a problem.
I have schema for tags and schema for course. Courses have an array of tags schema's ObjectIds.
How can I populate those tags with full schemas details.
Sample Tag Object
{
_id: 44ffbvb...,
title: "Tag 1
}
Sample Course Object
_id: 44ffaab23231,
tags: [ObjectId(44ffbvb...),..]
How can I populate those tags field performing $lookup stage in aggregation when using pipeline?