找到最低的元素我有一个集合的学生是这样的:MongoDB的:在嵌入式阵列
{
"_id" : 10,
"name" : "Christiano Ronaldo",
"scores" : [
{
"type" : "exam",
"score" : 40.58945534169687
},
{
"type" : "quiz",
"score" : 4.30461571152303
},
{
"type" : "homework",
"score" : 62.36309025722009
},
{
"type" : "homework",
"score" : 32.1707802903173
}
]
}
如何找到最低的功课?使用javadriver。
顺便说一下,许多人都在为这个特定的数据模型问题而苦苦挣扎,这不是一个假设。新的家庭作业? ;)示例:http://stackoverflow.com/questions/16806348/mongodb-selecting-record-based-on-two-conditions –
大多数新手都非常挣扎。是的,这是一个任务;) – Diganta
啊,没问题;) –