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
Removing __v from your existing documents: db.collection('CLASSNAME').updateMany({}, { $unset: { __v: 1 } });
Deactivate version key from schema's option
constyourSchema=newmongoose.Schema({// Your other fields here},{versionKey: false// This will disable the "__v" field});constYourModel=mongoose.model('YourModel',yourSchema);
Issue Description
Getting this issue while i am trying to add existing mongodb to parse-server :
Uncaught (in promise) Error: bad key in untransform: __v #5928
Steps to reproduce
Mongodb tables have this key : '__v' when i am using mongoose
Expected Results
Should allow migrate and see the results of the particular class
Actual Outcome
Getting below issue:
Mongodb tables have this key : '__v' when i am using mongoose
Environment Setup
Server
Database
Logs/Trace
Uncaught (in promise) Error: bad key in untransform: __v #5928
The text was updated successfully, but these errors were encountered: