Priority: Major - P3
Affects Version/s: None
Fix Version/s: Backlog
The documentation for `estimatedDocumentCount` is a bit confusing.
It seems that both MongoDB (shell) and PyMongo allow passing arbitrary, meaningless options. In PyMongo, I've been calling the function thus:
Not realizing that the filter and limit had no effect.
I've tested and the shell also silently accepts arbitrary fields:
I try to imagine what is the value of accepting arbitrary keyword arguments. I could imagine that some future version of MongoDB might honor other parameters for that query, so you'd like to support that interface before it exists. Even for that use-case, I'd expect the server to respond with some warning or errors about unused parameters, especially when the docs say "this method wraps the count command", which does take more parameters.
Can this call be made so that it rejects invalid parameters?