Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1352

Suppressed results from printJson in MongoSh

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.6.1
    • Component/s: CLI Module
    • Labels:
      None
    • 3

      Problem Statement/Rationale

      using printJson in mongosh on a large data set causes results to be suppressed with the message ... 57 more items

      Please be sure to attach relevant logs with any sensitive data redacted.

      Steps to Reproduce

      Where matching records exceed 100 results

      //config.set("displayBatchSize", 20000);
      const agg = [
        {
          '$match':

      {       'createdBy': 'gregory.akins@semanticbits.com'     }

        }
      ];

       

      print(db.measure.aggregate(agg).toArray()); 

       

       

      Expected Results

      Output of full result set

      Actual Results

      100 records and then "... 57 more items"

      Additional Notes

      This appears to have happened before

            Assignee:
            Unassigned Unassigned
            Reporter:
            gregory.akins@semanticbits.com Gregory Akins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: