【发布时间】:2017-08-31 10:36:02
【问题描述】:
我有这个测验文件:
{
_id: 001,
quiz: "cartoon familes",
questions:[
{
_id: 100,
question: "who is the eldest ?",
order: 1,
answers: [
{ _id: 101, answer: "Bart Simpson", points: 100 },
{ _id: 102, answer: "Lisa Simpson", points: 0 },
{ _id: 103, answer: "Maggie Simpson", points: 0 }
]
},
{
_id: 200,
question: "who is the eldest ?",
order: 2,
answers: [
{ _id: 201, answer: "Chris Griffin", points: 0 },
{ _id: 202, answer: "Meg Griffin", points: 100 },
{ _id: 203, answer: "Stewie Griffin", points: 0 }
]
}
]
}
我只想得到具有order: 1 字段的问题(所有其他问题都将被隐藏),我还希望points 字段被隐藏。
我该怎么做?
【问题讨论】: