[CDRIVER-2721] Add API-level documentation for restriction of geo commands in count helpers Created: 22/Jun/18  Updated: 28/Oct/23  Resolved: 06/Jul/18

Status: Closed
Project: C Driver
Component/s: docs
Affects Version/s: None
Fix Version/s: 1.12.0

Type: Improvement Priority: Minor - P4
Reporter: Rathi Gnanasekaran Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-518 Add API-level documentation for restr... Closed
Epic Link: CDRIVER 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 [ 06/Jul/18 ]

Author:

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

Message: CDRIVER-2721 how to migrate from old count funcs
Branch: r1.11
https://github.com/mongodb/mongo-c-driver/commit/e79625e1843a85e7f160f6751ef3c73e0d54ddd6

Comment by Githook User [ 06/Jul/18 ]

Author:

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

Message: CDRIVER-2721 how to migrate from old count funcs
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/91970c8e0dddee2a1167e20f8d87741c98820a5a

Generated at Wed Feb 07 21:16:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.