Skip to content

Instantly share code, notes, and snippets.

View theRedeemer997's full-sized avatar
:octocat:
Focusing

MANU MATHEW theRedeemer997

:octocat:
Focusing
  • Ontario, Canada
View GitHub Profile
-- User --
//import the mongoose package
const mongoose = require('mongoose');
//get the Schema from mongoose
const { Schema } = mongoose;
//Define the schema for user
const userSchema = new Schema({
EmailAddress: {
type: String,
required: [true, 'EmailAddress is required'],