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

Cannot print or console.log from a JavaScript file

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: 0.0.8, 0.1.0
    • Component/s: Embedded Shell
    • Labels:
      None
    • Not Needed

      $ cat print.js
      print('hi ppl')
      console.log('asdf')
      
      $ mongosh localhost print.js --shell
      Current sessionID:  77e98a8d118b83505e25890f
      Connecting to:      mongodb://127.0.0.1:27017/localhost
      Using MongoDB:      4.2.2
      Using Mongosh Beta: 0.0.8
      
      For more information about mongosh, please see our docs: https://docs.mongodb.com/mongodb-shell/
      
      >
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            gianpa@gmail.com Gianfranco Palumbo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: