skip to Main Content

MongoDb – Delete Json object from array

I would like to delete an object from a JSON objects array. Here is the schema qualifications: { Experience: [{ title: String, companyName: String, location: String, years: Number }], Education:[ { school: String, years: Number, }], Licences: [String], Honnors: [String],…

VIEW QUESTION

Node.js+MongoDB can't save hashed password

I am trying to save password in MongoDB but have error: Error: User validation failed: password: Path `password` is required. Model: const {Schema, model} = require('mongoose'); const UserSchema = new Schema({ email: {type: String, unique: true, required: true}, password: {type:…

VIEW QUESTION
Back To Top
Search