Skip to content

Instantly share code, notes, and snippets.

@lakshaygupta21
Created May 28, 2020 17:14

Revisions

  1. lakshaygupta21 created this gist May 28, 2020.
    10 changes: 10 additions & 0 deletions fruits.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    const mongoose = require("mongoose");
    const fruitsSchema = new mongoose.Schema({

    name: {
    type: String
    }

    });

    module.exports = fruits = mongoose.model("fruits", fruitsSchema)