Skip to content

Instantly share code, notes, and snippets.

@lakshaygupta21
Created May 28, 2020 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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