[CDRIVER-3052] Documentation examples should not use mongoc_collection_update Created: 29/Mar/19  Updated: 04/Dec/23  Resolved: 04/Dec/23

Status: Closed
Project: C Driver
Component/s: docs, libmongoc
Affects Version/s: None
Fix Version/s: 1.25.1

Type: Improvement Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Adrian Dole
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-3051 Using multi flag with mongoc_collecti... Closed
related to CDRIVER-3054 Deprecate mongoc_collection_update an... Backlog
Quarter: FY24Q3

 Description   

The following functions in test-mongoc-sample-commands.c still use mongoc_collection_update(), which has been superseded by newer CRUD methods:

  • test_example_52
  • test_example_53
  • test_example_54

This code ends up in C driver examples published in the MongoDB manual, so it would be preferable to use the newer methods here.



 Comments   
Comment by Githook User [ 20/Nov/23 ]

Author:

{'name': 'Adrian Dole', 'email': 'adrian@dole.tech', 'username': 'adriandole'}

Message: CDRIVER-3052 Replace most uses of mongoc_collection_update (#1423)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/647375c6a9b3e1f4119cda068548203b0f696cc2

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