[SERVER-1194] --eval problem with shell Created: 04/Jun/10 Updated: 07/Oct/15 Resolved: 23/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.9 |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Dwight Merriman | Assignee: | Kevin Pulo |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Minor Change | ||||
| Participants: | |||||
| Description |
|
C:\Users\dm\Desktop>mongo --eval db.foo.find() |
| Comments |
| Comment by Githook User [ 23/Sep/15 ] |
|
Author: {u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}Message: |
| Comment by Jonathan Hendler [ 01/Oct/11 ] |
|
seen http://stackoverflow.com/questions/3595265/basics-of-mongodb-scripts-how-to ? |
| Comment by Jonathan Hendler [ 01/Oct/11 ] |
|
Experiences an eval() issue from scala with same error message |
| Comment by Rama Roberts [ 22/Feb/11 ] |
|
Its not pretty, but you can always do something like: db.foo.find().forEach(function(r) {print(tojson(r))}); |