[DOCS-12940] eval option for mongo shell needs double quotes in Windows Created: 05/Aug/19 Updated: 30/Oct/23 Resolved: 13/Sep/19 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Task | Priority: | Trivial - P5 |
| Reporter: | Amit Jain | Assignee: | Andrew Feierabend (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | docs-onboarding-candidate | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 4 years, 21 weeks, 2 days ago |
| Epic Link: | DOCSP-1769 |
| Description |
DescriptionThe 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 changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Githook User [ 16/Sep/19 ] |
|
Author: {'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'name': 'Andrew Feierabend'}Message: |
| Comment by Githook User [ 13/Sep/19 ] |
|
Author: {'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'name': 'Andrew Feierabend'}Message: |
| Comment by Githook User [ 13/Sep/19 ] |
|
Author: {'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'name': 'Andrew Feierabend'}Message: |
| Comment by Githook User [ 13/Sep/19 ] |
|
Author: {'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com', 'name': 'Andrew Feierabend'}Message: |