-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
This library includes a RawLookup() generic function that conveniently does LookupErr() plus a Go type conversion. This makes it really easy to extract a value from a Raw document.
It’d be sweet if the driver had something equivalent for Go 1.27+, e.g.:
num, err := doc.ExtractErr[int64]("path", "to", "num")
Build tags would avoid breaking Go 1.26 & prior.
- depends on
-
GODRIVER-4094 Bump the minimum Go version to 1.27
-
- Backlog
-
- is related to
-
GODRIVER-4176 Create generic RawValue conversion logic
-
- Blocked
-
- related to
-
GODRIVER-4092 session.WithTransaction should have a generic equivalent in Go 1.27
-
- Blocked
-