Reputation: 1009
I started working with mongodb and aware how I can see data which is stored in database? I know about JavaScript shell (mongo.exe) but I want something which can give me the whole picture. Is it a way to open the data as a flat document? Or maybe it is possible to export the data to a file using some shell command? Thanks.
Upvotes: 1
Views: 9366
Reputation: 51
You can use mongodump
and then use bsondump
to dump collection files which is in bson format.
Upvotes: 4
Reputation: 230306
You can use mongoexport
. It will dump collections into files with JSON content.
Upvotes: 4