データベース内のレコードを
{"_id":"1","unit":"a1", "vehicle1" : "car"}
{"_id":"2","unit":"a2", "vehicle1" : "truck", "vehicle2" : "bike"}
{"_id":"3","unit":"b1", "vehicle1" : "car"}
{"_id":"4","unit":"zz", "vehicle1" : "truck", "vehicle2" : "car", "vehicle3" : "car" }
次の引数を持つエントリまたはすべてのエントリを検索するコマンドはありますか?
db.accidents.find( { vehicle*: "bike" } );