-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Go Drivers
-
Not Needed
-
Context
We need to add ObjectIDAsHexString to BSONOptions to configure the decoder for collection.
For example, using a "cursor.All" to decode into a results slice, the user should be able to use a hex representation of object id for the _id field.
Definition of done
Enable to set decoder ObjectIDAsHexString() using BSONOptions.
Pitfalls
The BSONOptions can be a bug factory while we are adding more decoder/encoder configurations. Think about refactoring it.