[CDRIVER-2295] mongoc_collection_aggregate() example takes one extra argument Created: 21/Sep/17  Updated: 28/Oct/23  Resolved: 21/Sep/17

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

Type: Bug Priority: Trivial - P5
Reporter: Josef Ahmad Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

As per documentation, mongoc_collection_aggregate() takes five arguments.

However, the example at http://mongoc.org/libmongoc/current/mongoc_collection_aggregate.html#example passes six arguments to the function:

cursor = mongoc_collection_aggregate (collection, MONGOC_QUERY_NONE, pipeline, NULL, NULL, NULL);



 Comments   
Comment by Josef Ahmad [ 22/Sep/17 ]

Thanks for pointing that out Jesse.

Comment by Githook User [ 21/Sep/17 ]

Author:

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

Message: CDRIVER-2295 fix mongoc_collection_aggregate example
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/79eba0b7db70ae31bcf8b6e863589432a96d932a

Comment by A. Jesse Jiryu Davis [ 21/Sep/17 ]

Thanks Josef. When you find errors in drivers docs you can file tickets against the driver project, in this case CDRIVER.

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