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

Multi-platform print/printjson

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.5.0
    • Affects Version/s: None
    • Component/s: Browser Module, CLI Module
    • None
    • Iteration Nectarine
    • Not Needed

      Right now print just uses console.log and we should be using the writer in cli-repl and find a solution for the browser and VS Code as well.

      From Slack conversation:
      Playgrounds in VS Code and the shell in Compass right now don’t support any of the printing objects/methods (console/print/printjson).

      This has been confusing for users so we thought we should address it sooner rather than later. The ticket has 3 parts:

      1. expose something in the shell evaluator API ti support this for when the shell is embedded somewhere
      2. use that in VS Code playgrounds so if I type console.log(<something>) it gets printed out
      3. do the same also in Compass for the embedded shell

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: