Print(object) doesn't work as expected
When executing javascript through the intellishell and printing an object, it just displays [object] rather than the entire object like Robomongo. See code example below:
db.CollectionName.find().forEach(function(doc){
print(doc);
});
1
vote
Craig Felton
shared this idea
-
Anonymous commented
Is it possible that 3.5 years after this comment 'printjson(doc);' and 'print(doc);' still does not work?
-
Try using 'printjson(doc);', that should do the trick!