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

Add EncodeContext/DecodeContext options

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      If a user wants to take advantage of EncodeContext/DecodeContext settings like minSize, they have to manually call functions like MarshalWithContext. This means they can't use these options when calling high level functions like InsertOne because those functions always use MarshalAppendWithRegistry and don't allow custom Encode/Decode contexts.

      We should add EncodeContext and DecodeContext options to configure Client, Database, and Collection. Like Registry, each level should inherit this option from the previous level if it is not specified.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: