Oleg Dudnyk
Oleg Dudnyk

Reputation: 1009

How to see BSON document?

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

Answers (2)

Saman Azadi
Saman Azadi

Reputation: 51

You can use mongodump and then use bsondump to dump collection files which is in bson format.

Upvotes: 4

Sergio Tulentsev
Sergio Tulentsev

Reputation: 230306

You can use mongoexport. It will dump collections into files with JSON content.

Upvotes: 4

Related Questions