{"action":"created","issue":{"url":"https://api.github.com/repos/paralect/robomongo/issues/765","labels_url":"https://api.github.com/repos/paralect/robomongo/issues/765/labels{/name}","comments_url":"https://api.github.com/repos/paralect/robomongo/issues/765/comments","events_url":"https://api.github.com/repos/paralect/robomongo/issues/765/events","html_url":"https://github.com/paralect/robomongo/issues/765","id":59022494,"number":765,"title":"Add BSON export","user":{"login":"stennie","id":15554,"avatar_url":"https://avatars.githubusercontent.com/u/15554?v=3","gravatar_id":"","url":"https://api.github.com/users/stennie","html_url":"https://github.com/stennie","followers_url":"https://api.github.com/users/stennie/followers","following_url":"https://api.github.com/users/stennie/following{/other_user}","gists_url":"https://api.github.com/users/stennie/gists{/gist_id}","starred_url":"https://api.github.com/users/stennie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stennie/subscriptions","organizations_url":"https://api.github.com/users/stennie/orgs","repos_url":"https://api.github.com/users/stennie/repos","events_url":"https://api.github.com/users/stennie/events{/privacy}","received_events_url":"https://api.github.com/users/stennie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paralect/robomongo/labels/feature","name":"feature","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-26T05:41:58Z","updated_at":"2015-03-11T14:20:13Z","closed_at":null,"body":"There's a general suggestion that [import/export should be integrated](https://github.com/paralect/robomongo/issues/102), but more detailed/practical use cases would be helpful.\r\n\r\nWould welcome feedback on what would be most useful for BSON export:\r\n - export an entire database\r\n - export from a collection\r\n - export from a `find()` query\r\n - export from an `aggregate()` query\r\n - export via UI\r\n - provide UI that wraps the external `mongodump` command line utility\r\n\r\nPresumably the BSON export should be compatible with `mongorestore`, so collection options and index definitions would need to be preserved in a `metadata.json` file.\r\n\r\nCurrently the best alternative is to use the standard `mongodump` command line tool."},"comment":{"url":"https://api.github.com/repos/paralect/robomongo/issues/comments/78271652","html_url":"https://github.com/paralect/robomongo/issues/765#issuecomment-78271652","issue_url":"https://api.github.com/repos/paralect/robomongo/issues/765","id":78271652,"user":{"login":"Volox","id":1468697,"avatar_url":"https://avatars.githubusercontent.com/u/1468697?v=3","gravatar_id":"","url":"https://api.github.com/users/Volox","html_url":"https://github.com/Volox","followers_url":"https://api.github.com/users/Volox/followers","following_url":"https://api.github.com/users/Volox/following{/other_user}","gists_url":"https://api.github.com/users/Volox/gists{/gist_id}","starred_url":"https://api.github.com/users/Volox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Volox/subscriptions","organizations_url":"https://api.github.com/users/Volox/orgs","repos_url":"https://api.github.com/users/Volox/repos","events_url":"https://api.github.com/users/Volox/events{/privacy}","received_events_url":"https://api.github.com/users/Volox/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T14:20:13Z","updated_at":"2015-03-11T14:20:13Z","body":"+1 For a `mongodump` wrapper\r\n\r\n* Right click on the database issues: `mongodump -d <selected db>`\r\n* Right click on the collection issues: `mongodump -d <selected db> -c <selected collection>`\r\n* Export query via the `mongodump -d <selected db> -c <selected collection> -q <query>`. *The query is passed to the `-q` parameter of `mongodump` so not all the commands are available*"}}