Update mongodb

This commit is contained in:
sunkaixuan 2025-08-15 11:24:29 +08:00
parent 7f2332a7d7
commit cd23338a43

View File

@ -172,7 +172,7 @@ namespace SqlSugar.MongoDb
{ "as", "b" },
{ "in", new BsonDocument("$eq", new BsonArray { $"$$b.{leftField}", $"${rightField}" }) }
};
var anyElementTrueDoc = new BsonDocument("$anyElementTrue", new BsonDocument("$map", mapDoc));
var anyElementTrueDoc = new BsonDocument("$expr", new BsonDocument("$anyElementTrue", new BsonDocument("$map", mapDoc)));
return anyElementTrueDoc;
}
else