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

mongosh has the limitations and quirks of node console.log

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • Not Needed

      Problem Statement/Rationale

      1) Cursors are automatically transformed into arrays.

      2) Console.log depth for objects and arrays is similar to nodejs / javascript console.log

       

      Steps to Reproduce

      run mongosh,

      Try to display a high depth dataset

      Expected Results

      to work like .pretty() or findOne from mongo client.

      Actual Results

      Doesn't work like .pretty / findOne but like console.log

      Additional Notes

       

            Assignee:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Reporter:
            valentin@zalter.com Valentin Popescu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: