0
funding_rounds
は配列です。次のクエリを実行してエラー$size needs a number
を取得しようとしていますが、$size
と$gte
を組み合わせて使用する正しい方法は何ですか?
db.companies.aggregate([
{
$match: {
$and: [
{"founded_year": 2004},
{"funding_rounds": {$size: {$gte: 5}}}
]
}
}
])