Skip to content

Instantly share code, notes, and snippets.

View gaurang847's full-sized avatar
😋
I wanna build cool stuff

Gaurang Pansare gaurang847

😋
I wanna build cool stuff
View GitHub Profile
@gaurang847
gaurang847 / mongoose_sample.js
Created December 1, 2020 06:50
Sample file that uses mongoose to connect to a MongoDB instance and performs simple CRUD operations.
const mongoose = require( 'mongoose' );
const util = require('util');
const Schema = mongoose.Schema;
const CommentSchema = new Schema({
username : String,
content : String,
created : Date
});