我该如何查询其中有苹果的圆滑的人? (下面是3个文件的集合)用Mongo查询数组元素
_id => 1
name => 'best smoothie'
ingredients => Array
(
[0] => apple
[1] => raspberry
[2] => orange
[3] => banana
)
_id => 2
name => 'summer smoothie'
ingredients => Array
(
[0] => lemon
[1] => mint
)
_id => 3
name => 'yogurt smoothie'
ingredients => Array
(
[0] => apple
[1] => blueberry
)
非常感谢,也没有想这将是这很容易xD – Gigala 2013-05-03 06:53:32