[SERVER-11715] find has different spacing for output than findOne Created: 15/Nov/13  Updated: 11/Jul/16  Resolved: 03/Dec/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Improvement Priority: Minor - P4
Reporter: Tyler Brock Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

> doc = db.test.findOne()
{ "_id" : ObjectId("52857640a3461b18bcb33e3b"), "nums" : [ 1, 2, 3 ] }
> db.test.find()
{ "_id" : ObjectId("52857640a3461b18bcb33e3b"), "nums" : [  1,  2,  3 ] }



 Comments   
Comment by Githook User [ 03/Dec/13 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: SERVER-11715 fix Array.tojson ugly output

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/54e3bd6c818a20d8e3c963c335875a25cdc51221

Generated at Thu Feb 08 03:26:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.