-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported OP_QUERY command: aggregate. The client driver may require an upgrade. MongoDB 6.0.1 #133
Comments
You can update |
@simplylizz I tried the same with Could you please help with right version, which I can use , I'm looking for version 6 and version 5 |
@ChinmoyPadhi I think you're confusing driver (i.e. node package) version & mongodb server version. |
When I do that the server fails to run. Seems a mix of NPM versions. Any ideas? https://stackoverflow.com/questions/68692038/how-to-solve-error-syntaxerror-unexpected-token
--- updated node, that fixed it |
Have you got it solved? I'm facing with the same question now, but my mongodb version is 7.0.12 |
Using MongoDB 6.0.1 Community and the following query:
db.XXXXXX.aggregate([
{
"$match": {
"status": "done"
}
}, {
"$group": {
"_id": null,
"done": {
"$count": {}
}
}
}
])
It returns the following error:
response:Object
message:"Unsupported OP_QUERY command: aggregate. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal"
But with MongoDB 5.0 it works fine.
The text was updated successfully, but these errors were encountered: