-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
We use a generic JSON library for managing nested maps, github.com/Jeffail/gabs/v2.
This library only supports nested maps values of type any which bson.Unmarshall v1 output. After updating to go-driver v2 bson.Unmarshall now outputs any(go.mongodb.org/mongo-driver/v2/bson.D)
Definition of done
Being able to tell bson.Unmarshall to output map values of type any.
Pitfalls
There is probably a reason for the change, and I'd be interested to know what it is.
I tried using the decoder pattern, but it was the same result.
- is fixed by
-
GODRIVER-3697 Add DefaultDocumentMap() decoder method
-
- Needs Triage
-
- is related to
-
GODRIVER-3576 Add a way to unmarshal BSON to map[string]any
-
- Closed
-