Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const questionSchema = new Schema({
- text: String,
- responses: [ResponseSchema]
- });
- const responseSchema = new Schema({
- _id: { type: Schema.Types.ObjectId, ref: 'User' },
- response: String
- });
Add Comment
Please, Sign In to add comment