Created
May 28, 2020 17:14
-
-
Save lakshaygupta21/b1a93e5918105ad5fdf8da3f15527491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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