-1
에 포함 된 문서를 만들 :다음과 같이 내가 스키마를 설정하거나 몽구스
나는 주어진 poll_id 및 설문 조사에 응답 한 사람의 OWNER_ID에 대한 대답을 설정하는 방법/**
* Answer Schema
*/
var AnswerSchema = new Schema({
answer: Number,
owner_id: Schema.Types.ObjectId
});
/**
* Poll Schema
*/
var PollSchema = new Schema({
question: { type: String, required: true, trim: true },
choices: [ { type: String, required: true, trim: true} ],
answers: [AnswerSchema]
});
?