-
Notifications
You must be signed in to change notification settings - Fork 266
PHPLIB-417: countDocuments should use group with _id: 1 #652
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
Conversation
Isn't this just going to return either 1 or 0, though? |
The |
Is the ”output a single document” functionality being changed to |
The motivation for the change is explained in mongodb/specifications#504:
This has no implications on the result or on whether you should use The "output a single document" functionality is not tied to anything: this is a side effect of using |
Ok! Thanks for clarifying. I was under the impression that this was only for when setting the It’s propbably not your table, but it would be useful to update the documentations to read ”constant value” rather than ”null” for the examples etc. |
I don't know which table you are referring to. A quick search led me to the documentation for
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
@lindelius: Nothing to worry about on your end (or any other application). For purposes of The impetus for this change was that several internal specification tests had trouble asserting outgoing commands because those same tests often use
@alcaeus linked to the current documentation, but for reference this change was made in mongodb/docs#3542 in the manual for server versions 4.0+. I'm not sure if it was back-ported, but it's possible you were looking at |
https://jira.mongodb.org/browse/PHPLIB-417