[CDRIVER-2606] mongoc_collection_watch pipeline argument should allow bson array Created: 11/Apr/18  Updated: 28/Oct/23  Resolved: 19/Apr/18

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.9.5, 1.10.0

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

Issue Links:
Related
related to CDRIVER-2764 aggregate inherits writeConcern only ... Closed

 Description   

ryan.timmons discovered that passing a bson array as the pipeline argument to mongoc_collection_watch silently fails to append anything and is the same as if no pipeline was passed.

This is because the pipeline must be passed as a document like

{ "pipeline": [...] }

This is partially consistent with the pipeline argument to mongoc_collection_aggregate, but mongoc_collection_aggregate also allows a bson array. mongoc_collection_watch should be consistent with the aggregate helper and allow either way to pass a pipeline.



 Comments   
Comment by Githook User [ 01/May/18 ]

Author:

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

Message: CDRIVER-2606 array arg on collection_watch
Branch: debian
https://github.com/mongodb/mongo-c-driver/commit/2dc318fafec36b1fea6a9182b2b36baf802b8649

Comment by Githook User [ 01/May/18 ]

Author:

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

Message: CDRIVER-2606 array arg on collection_watch
Branch: r1.9-dfsg
https://github.com/mongodb/mongo-c-driver/commit/2dc318fafec36b1fea6a9182b2b36baf802b8649

Comment by Githook User [ 19/Apr/18 ]

Author:

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

Message: CDRIVER-2606 array arg on collection_watch
Branch: r1.9
https://github.com/mongodb/mongo-c-driver/commit/2dc318fafec36b1fea6a9182b2b36baf802b8649

Comment by Githook User [ 19/Apr/18 ]

Author:

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

Message: CDRIVER-2606 array arg on collection_watch
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/051fa1d65937ecef25fa88dd7c98657e7fc9c17d

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