mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Projection function never retains anything from passed doc.
Always does deep copy.
This commit is contained in:
@@ -25,7 +25,7 @@ LocalCollection._compileProjection = function (fields) {
|
||||
res[key] = transform(doc[key], rule);
|
||||
// Otherwise we don't even touch this subfield
|
||||
} else if (details.including)
|
||||
res[key] = doc[key];
|
||||
res[key] = EJSON.clone(doc[key]);
|
||||
else
|
||||
delete res[key];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user