mongoose model from model 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);