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

Breaking change v1/v2 or bug ?

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Go Drivers
    • 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?

      Breaking change v1/v2 ?

      With this document:

      {
          "_id" : "zen",
          "logger" :

      {         "level" : "trace",         "output" : "journal"     }

      }

      and this code:

      var data map[string]any
      err := col.FindOne(ctx, bson.M{"_id": "zen"}).Decode(&data)

      v1:
      data=map[_id:zen logger:map[level:trace output:journal]]

      v2:
      data=map[_id:zen logger:\{"level":"trace","output":"journal"}]

            Assignee:
            qingyang.hu@mongodb.com Qingyang Hu
            Reporter:
            ltrochet@proton.me Loïc TROCHET
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: