0
私は「$または」次のように2つの正規表現の一致のために検索を実行しようとしている:
{
"metadata.text": {
"$or": [
{
"$regex": ".*hello.*"
},
{
"$regex": ".*world.*"
}
]
}
}
私はmlab.comを使用していますし、次のエラー受け付けております:
MongoDB error: "Command failed with error 2: 'unknown operator: $or' on server ZZZZZZZ. The full response is { "ok" : 0.0, "errmsg" : "unknown operator: $or", "code" : 2, "codeName" : "BadValue" }." Please contact [email protected] if you need assistance.
を
なぜ$が不明なオペレータとして検出されましたか?