Hi
I have a collection with an attribute called tag_ids. It is a array and the data is like:
0:2
2:19
And I have another collection called tags with a structure like:
{
id: 2,
name: 'Factory'
}
{
id:19,
name:'Account'
}
After joining this two tables with my aggregation I got another field but instead of two elements in my new array I got 7
lookup:
{
from: 'tags',
localField: 'tag_ids',
foreignField: 'id',
as: 'str_tags_id'
}
The stranger is that when I try to filter the array the filter is not applied.
“str_tags_id.project_id”:393382
Could someone tell me why this occurs?