do you need .model for mogoose code example
Example: model mongoose
const modelName = mongoose.model("collectionname", collectionSchema);
//example
const fruitSchma = new mongoose.Schema ({
name: String
});
const Fruit = mongoose.model("Fruit", fruitSchema);