I am trying to post something to mongodb, my models file looks like this and i have input all of the required fields in insomnia but for some reason it's still not working.
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const contactSchema = new Schema({
name: { type: String, required: true },
email: { type: String, required: true },
phoneNumber: { type: Number, required: true },
message: { type: String, required: true },
date: { type: Date, required: false },
});
const Contact = mongoose.model('Contact', contactSchema);
module.exports = Contact;