Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12940

eval option for mongo shell needs double quotes in Windows

      Description

      The example in the "Use --eval to Print Query Results as JSON" section will not work in Windows. For Windows it must be double quotes instead:

      > mongo --eval "db.collection.find().forEach(printjson)"

      https://docs.mongodb.com/manual/reference/program/mongo/#use-eval-to-print-query-results-as-json

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

            Assignee:
            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            Reporter:
            amit.jain@mongodb.com Amit Jain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              4 years, 31 weeks, 3 days ago