data restored from mongodb dumb throwing bson error on _id field #9847
Labels
Data export
We export data nightly as CSV, MongoDB… See: https://world.openfoodfacts.org/data
MongoDB
We have 2 mongodb collections: one for current products, and one for obsolete products
Downloaded MongoDB dump from https://world.openfoodfacts.org/data
Im using the below command to take the data to my db
mongorestore -h localhost:27017 -d db-name /off/dump/products/
products folder has these two files : products.bson and products.metadata.json
After restore the value of _id is not coming as type of mongodb Objectid . its a string eg: _id: "0000000000"
I want the _id to be type of mongodb ObjectId
The text was updated successfully, but these errors were encountered: