Skip to content

Commit

Permalink
fix(documentarray): use toObject() instead of cloning for inspect
Browse files Browse the repository at this point in the history
Re: #6637
  • Loading branch information
vkarpov15 committed Jul 28, 2018
1 parent 88457b0 commit b0e1c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/documentarray.js
Expand Up @@ -265,7 +265,7 @@ MongooseDocumentArray.mixin = {
*/

inspect: function() {
return Array.prototype.slice.call(this);
return this.toObject();
},

/**
Expand Down

0 comments on commit b0e1c5b

Please sign in to comment.