Skip to content

Instantly share code, notes, and snippets.

View ralph12322's full-sized avatar

deralph ralph12322

View GitHub Profile
//the sample run at the bottom part(118).
import mongoose from 'mongoose';
const userSchema = new mongoose.Schema(
{
email: {
type: String,
required: true,
unique: true,