[CXX-1604] Add API-level documentation for restriction of geo commands in count helpers Created: 22/Jun/18  Updated: 28/Oct/23  Resolved: 28/Aug/18

Status: Closed
Project: C++ Driver
Component/s: Documentation
Affects Version/s: None
Fix Version/s: 3.4.0

Type: Task Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CXX-1594 Implement new count API Closed
is depended on by DRIVERS-518 Add API-level documentation for restr... Closed
Epic Link: CXX MongoDB 4.0 Support

 Description   

With the deprecation of the count() and command users will be asked to move to the use of countDocuments() and estimatedDocumentCount() helpers.

The deprecation messaging in the api and deprecation warning should mention the restrictions on using the following commands/operators in the query/filter of the count and the countDocuments helpers.

restricted -> replacement:

$where -> $expr
$near -> $geoWithin with $center
$nearSphere -> $geoWithin with $centerSphere

Also note that $expr requires MongoDB 3.6+

 



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

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: CXX-1604 Avoid linter failures in count docs
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/225c492975fcc624370957ccf1737ade9371715b

Comment by Githook User [ 28/Aug/18 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs'}

Message: CXX-1604 Document upgrade path for count operators
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/7b6c761760b135b4d759d27a5f735353269a40e8

Generated at Wed Feb 07 22:03:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.