Wikipedia

Search results

07 August 2018

mongoexport Unrecognized field 'snapshot'

Try to get your data out of Mongo and you may find yourself butting heads with

Unrecognized field 'snapshot' 


You should know there are options to skip including `snapshot` in your export query, my guess is this applies to dumps also.



https://github.com/mongodb/mongo-tools/blob/master/mongoexport/mongoexport.go


To get around this error, pass in the flag:

# mongoexport  --forceTableScan -d db_name -c collection_name > my_export.json