Created
April 4, 2019 09:34
-
-
Save gisderdube/e11a6bbfec9db1d57e27e0674ad5b215 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
const StudentSchema = new Schema({ | |
teacher: { | |
type: Schema.Types.ObjectId, | |
ref: 'Teacher', | |
required: true, | |
}, | |
name: String, | |
... | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment