MongoDb $addFields and $match
问题 In my mongodb query, I use $addFields to add ID field which concatenated of other three fields. My problem is that I get no result if I $match that new added field with value that I want to query. For other fields, they work just fine. order of aggregation what is in aggregation data = await model.aggregate([ { $project: { projectName: 1, price: 1, 'document': '$$ROOT' } }, { $addFields:{ 'document.id': {$concat: ['$document.propertyId.prefix','$document.propertyId.number']} } }, { $match: {