[GODRIVER-679] Aggregate does not accept a bson.A as the pipeline Created: 07/Dec/18 Updated: 28/Oct/23 Resolved: 19/Dec/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 0.1.0 |
| Fix Version/s: | 0.2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | PJ Tatlow | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
It seems like you should be able to use a bson.A to hold several bson.D or bson.M documents to create an aggregation pipeline. But when I try I get the error "cannot transform type primitive.A to a *bsonx.Document". Example:
|
| Comments |
| Comment by Githook User [ 19/Dec/18 ] |
|
Author: {'username': 'skriptble', 'email': 'kris@mongodb.com', 'name': 'Kris Brandow'}Message: Fix transforming of interface{} into agg pipeline This commit fixes the transformAggregatePipeline function, which Change-Id: I5f1e4b6fe84a6e1db6dda187010d7f94e4a42e7b |
| Comment by Kristofer Brandow (Inactive) [ 12/Dec/18 ] |
|
Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/437017. |
| Comment by Ad [ 09/Dec/18 ] |
|
Following this issue. Having the problem in buiding an aggregation pipeline. |