Mongodb – Saving a mongo document with mongoose returns the updated document, but didn't save in the database
My issue today is with MongoDB and mongoose in javascript. So first off I have this schema: var playerModel = new Schema({ user: { type: mongoose.Schema.Types.ObjectId, ref: "Users", }, class: { type: String, required: true, }, level: { type: Number,…