Skip to content

Instantly share code, notes, and snippets.

@lakshaygupta21
Created May 28, 2020 17:14
Show Gist options
  • Save lakshaygupta21/b1a93e5918105ad5fdf8da3f15527491 to your computer and use it in GitHub Desktop.
Save lakshaygupta21/b1a93e5918105ad5fdf8da3f15527491 to your computer and use it in GitHub Desktop.
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