You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2020. It is now read-only.
I've tried dumping & restoring a database to/from a file using the 2.X Mongo Driver. The result is the following error:
error parsing element 0 of field documents :: caused by :: wrong type for '0' field, expected object, found 0: BinData(0, 5D000000075F696400559148BBC695410D36B301C1106C617465737452656C656173650001000000026E616D6500190000004D6F766552656C65617365436F6E666967757261...)
When forcefully downgrading to version 1.4.32 of the Mongo Driver, the restore process completes successfully. I found this link in Mongo's JIRA.
I don't know if this can be easily fixed, but perhaps you can change the package version for the Mongo driver so that it's explicitly 1.X, since now npm install automatically installs 2.X.