versionKey removed or __v will appear on the Database

This commit is contained in:
NyxiumYuuki 2021-05-29 00:03:14 +02:00
parent 033b8b6486
commit 4e2e779a09

View file

@ -25,7 +25,7 @@ const schemaMessage = mongoose.Schema({
type: String, type: String,
required: true required: true
} }
}); },{ versionKey: false });
const messages = mongoose.model(config.mongodbMessages, schemaMessage); const messages = mongoose.model(config.mongodbMessages, schemaMessage);