Being a newbie to mongodb, my apologies if this is a trivial question, hopefully not.
I've got a set of 10 json files generated on a mongodb db, for which I would like to investigate the structure (fields, names, sizes, etc.). I know how to import json files into a db/collection on my mongo system and then use dbfind. However this works for specific fields which you need to know in advance, right?
In a relational SQL DB I would simply import the files and then go through the field names, sizes, even export it to a standard file format (.CSV, etc).
- When you know nothing about your source files, what is the equivalent strategy for MongoDB?
- Is there a command that lists all the fields/elements in the doc?
- Can you export the DB/collection from mongo, to a different format that is more manageable for discovery (e.g. .csv, or a SQL database).
Thanks in advance, p