[CDRIVER-2408] Fix documentation for command_with_opts functions and aggregate Created: 27/Nov/17  Updated: 28/Oct/23  Resolved: 28/Nov/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.9.0

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

Issue Links:
Related
related to CDRIVER-2410 _mongoc_client_command_with_opts omit... Closed
related to CDRIVER-2409 bypassDocumentValidation is not a wri... Closed
is related to CDRIVER-2207 Introduce generic mongoc_client_comma... Closed
is related to CDRIVER-2227 "Commands with opts" tutorial Closed

 Description   

mongoc_client_command_with_opts.rst is missing read prefs arg (before bson_t *opts). Additionally, the current explanation of how various opts are parsed is incorrect, as f2d3db3 from CDRIVER-2207 talks about inheriting read preference from opts and doesn't mention that read concern requires a server version. It also states that "The write concern is omitted for MongoDB before 3.2", but write concern is only supported for findAndModify on 3.2 and other commands require 3.4+ (see: Server Wire version and Feature List).



 Comments   
Comment by Githook User [ 28/Nov/17 ]

Author:

{'name': 'Jeremy Mikola', 'username': 'jmikola', 'email': 'jmikola@gmail.com'}

Message: CDRIVER-2408 fix aggregate write concern requirement
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6c17ab6b368ea2142c90e6640e22dde6ebf6af9b

Comment by Githook User [ 28/Nov/17 ]

Author:

{'name': 'Jeremy Mikola', 'username': 'jmikola', 'email': 'jmikola@gmail.com'}

Message: CDRIVER-2408 note read concern and collation errors in opts lists
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/01b6d96e77469336b6b64200eeccd90b36112d4f

Comment by Githook User [ 28/Nov/17 ]

Author:

{'name': 'Jeremy Mikola', 'username': 'jmikola', 'email': 'jmikola@gmail.com'}

Message: CDRIVER-2408 fix docs for command_with_opts funcs
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/559b4dd9bddda4410cefba2ea0df38c68b63b11c

Comment by Jeremy Mikola [ 27/Nov/17 ]

https://mongodbcr.appspot.com/171830001

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