我該如何查詢其中有蘋果的圓滑的人? (下面是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