[SERVER-35989] Mongo shell needs a countDocuments function Created: 06/Jul/18  Updated: 29/Oct/23  Resolved: 03/Aug/18

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 4.0.3, 4.1.2

Type: Bug Priority: Major - P3
Reporter: Joe Drumgoole (Inactive) Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-11947 Docs for SERVER-35989: Mongo shell ne... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Repl 2018-07-30, Repl 2018-08-13
Participants:

 Description   

countDocuments was a late change to the drivers for MongoDB 4.0 and is missing from the MongoDB Shell. Needs to be added in a future release.



 Comments   
Comment by Githook User [ 28/Aug/18 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pvselvan@umich.edu', 'username': 'pvselvan'}

Message: SERVER-35989 add document count functions to the shell

(cherry picked from commit eb8bc29deed882f86f0103df2489cf6e2d4f4113)
Branch: v4.0
https://github.com/mongodb/mongo/commit/86304667fdaa72a6cab474817e72ffed4d9537f9

Comment by Githook User [ 02/Aug/18 ]

Author:

{'username': 'pvselvan', 'name': 'Pavi Vetriselvan', 'email': 'pvselvan@umich.edu'}

Message: SERVER-35989 add document count functions to the shell
Branch: master
https://github.com/mongodb/mongo/commit/eb8bc29deed882f86f0103df2489cf6e2d4f4113

Comment by Tess Avitabile (Inactive) [ 10/Jul/18 ]

Yes, this ticket should also include estimatedDocumentCount().

Comment by Jeremy Mikola [ 06/Jul/18 ]

Should this ticket incorporate estimatedDocumentCount() as well?

The specs for both functions are discussed in the drivers' CRUD spec.

Generated at Thu Feb 08 04:41:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.