const modelName = mongoose.model("collectionname", collectionSchema); //example const fruitSchma = new mongoose.Schema ({ name: String }); const Fruit = mongoose.model("Fruit", fruitSchema);