Commit d71566a55ebbe76ee introduced server-side validation of the "query" field in the count command, rejecting commands where "query" is not of BSON type Object.
Some drivers pass non-Object values for the "query" field in the case that the application did not provide a value. The validation described above can therefore cause compatibility issues for drivers. We should consider relaxing the validation to allow some or all non-Object values.
- related to
-
SERVER-19907 Distinct command should accept a BSON element of type null for the "query" field
- Closed
-
PHPLIB-91 Ensure query/filter args always serialize as BSON documents
- Closed