Created
March 9, 2019 18:40
-
-
Save LazyFatArrow/f901541bd40a1d7e00dc755a481e4736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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