PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 18th of May, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[09:38:47] <kkoomen> Hi. I have a field type "[Array]" (so it's 2-dimensional). An example item would be: { targetAreas: [['US'], ['AU']] }. I have a webpage with a campaign, at the bottom we display "related" campaigns, so I need to do something like this for the related campaigns: const related = await campaigns.aggregate([{ $match: { targetAreas: { $in: currentCampaign.targetAreas } } }]) but this doesn't work. How
[09:38:49] <kkoomen> do I do this?