[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: |
|
||||||||
| 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
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: |
| Comment by Githook User [ 01/May/18 ] |
|
Author: {'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs', 'name': 'Kevin Albertson'}Message: |
| Comment by Githook User [ 19/Apr/18 ] |
|
Author: {'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs', 'name': 'Kevin Albertson'}Message: |
| Comment by Githook User [ 19/Apr/18 ] |
|
Author: {'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs', 'name': 'Kevin Albertson'}Message: |