Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow
Created March 9, 2019 18:40
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 LazyFatArrow/f901541bd40a1d7e00dc755a481e4736 to your computer and use it in GitHub Desktop.
Save LazyFatArrow/f901541bd40a1d7e00dc755a481e4736 to your computer and use it in GitHub Desktop.
import mongoose from 'mongoose'
const PersonSchema = new mongoose.Schema({
name: {
type: String,
unique: true
},
})
export default mongoose.model('person', PersonSchema)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment