Can not add additional element to (mongoose) object
问题 I have a nodejs express application with an api to return data from a mongodb database. This is my mongoose model: const bookingSchema = new mongoose.Schema({ timestamp: { type: Date, default: Date.now, required: true }, tags: { type: [String], required: true }, amount: { type: Number, required: true }, type: { type: String, required: true, enum: ['expense', 'income'] } }) When I'm calling the api with the path /api/bookings/listbymonth/2019/1 this function inside the backend gets called: