[DOCS-1303] Cannot export data json from MongoDB Created: 27/Mar/13  Updated: 03/Nov/17  Resolved: 18/Apr/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: auto Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

XUbuntu

Location: http://docs.mongodb.org/manual/
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22
Referrer: http://www.mongodb.org/downloads
Screen Resolution: 1280 x 1024
repo: docs
source: index


Participants:
Days since reply: 10 years, 43 weeks, 6 days ago

 Description   

sudo mongoexport --db twitter_db_v1 --collection all_stream_data --query '

{"lang": 'en'}

' --out /home/phant/db/test.json
sudo mongoexport --db twitter_db_v1 --collection all_stream_data --query '

{"lang": 'en'}

' --dbpath /home/phant/db
sudo mongoexport --db twitter_db_v1 --collection all_stream_data --query '

{"lang": 'en'}

' --file /home/phant/db/test.json



 Comments   
Comment by Kay Kim (Inactive) [ 18/Apr/13 ]

Should have --out option instead of --file

Also, the query syntax needs to be fixed since the document is enclosed in single quote but also include single quotes

'

{"lang": 'en'}

' should be '

{"lang": "en"}

'

Generated at Thu Feb 08 07:40:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.