【发布时间】:2016-01-18 14:24:10
【问题描述】:
我正在 Meteor 中创建一个测验应用程序。
问题的架构是什么样的?我正在考虑做类似的事情
const QuestionSchema = new SimpleSchema({
text: {
type: String,
},
correctAnswers: {
type: [Object],
},
'correctAnswers.$.text': {
type: String,
},
wrongAnswers: {
type: [Object],
},
'wrongAnswers.$.text': {
type: String,
},
});
但它真的很聪明吗?如何保存某些用户选择的答案?
【问题讨论】:
标签: mongodb meteor collections schema