I’m using similar code from the basic joins video, but trying to do it to add comments to a users profile… but it only returns one user with their comments added… can someone tell me why that is?
{
‘from’: ‘comments’,
‘let’: {‘name’: ‘$name’},
‘pipeline’: [
{’$match’:
{’$expr’:{’$eq’:[’$name’, ‘$$name’]}
}}],
‘as’: ‘comments’
}