Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-3326

Add ObjectIDAsHexString to BSONOptions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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.

            Assignee:
            qingyang.hu@mongodb.com Qingyang Hu
            Reporter:
            qingyang.hu@mongodb.com Qingyang Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: