In fact, you can also program it yourself, for example:
db = connection.[dbname] collection = db.[yourcollectionname] for col in collection.find({}): for keys in col.keys(): print ('{', keys, ":" , col[keys] , '}' )
I think it will be useful or take it as an option.
source share