Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed; only save the depopulated ObjectId

  • Loading branch information...
commit 773f737986d20446db0e28ceda501b6425f9d859 1 parent a820d98
@aheckmann aheckmann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/types/array.js
View
2  lib/types/array.js
@@ -303,7 +303,7 @@ MongooseArray.prototype.splice = function () {
MongooseArray.prototype.toObject = function (options) {
if (options && options.depopulate && this[0] instanceof Document) {
return this.map(function (doc) {
- return doc.toObject(options);
+ return doc._id;
});
}

0 comments on commit 773f737

Please sign in to comment.
Something went wrong with that request. Please try again.