Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const mongoose = require("mongoose");
const fruitsSchema = new mongoose.Schema({
name: {
type: String
}
});
module.exports = fruits = mongoose.model("fruits", fruitsSchema)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment