[GODRIVER-319] Make the TransformDocument function configurable Created: 27/Mar/18 Updated: 27/Oct/23 Resolved: 09/May/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON, CRUD |
| Affects Version/s: | 0.0.2 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Unassigned |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | GODRIVER Alpha 4 UX |
| Description |
|
Currently the Collection methods use a TransformDocument function to take empty interface types and convert them into a *bson.Document. Make this a function types, or an interface, that is configurable so the user can choose to have their own transformation functions for input. This will be most useful for users switching from mgo because it will allow them to use a hybrid transformer that uses the mgo/bson Marshal function. |
| Comments |
| Comment by Kristofer Brandow (Inactive) [ 09/May/18 ] |
|
Superseded by https://jira.mongodb.org/browse/GODRIVER-414. |
| Comment by Sam Kleinman (Inactive) [ 01/May/18 ] |
|
This should probably be replaced by a custom encoder type registry which will provide more granular customizable bson formatting |