should be

You do not need all the $map and $toObjectId or $toString that you do.

Another thing is that sometimes you use dbTags and at other time you use dbtags. Collection names are case sensitive. So if your collection is really dbtags like dbChallanges is dbchallanges then it is normal that the result is empty.

So if you really really needs the $map/$toObjectId/$toString then simply try to replace from: “dbTags” to from: “dbtags” in the $lookup.