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

ObjectId is not read to string by Decode when asked

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 0.0.12
    • None
    • None

    Description

      Using a struct with a string as the ObjectId field, the ObjectId is not decoded.

      This is useful in a case where you create a database abstraction and dont want to keep an ObjectId in your objects but rather a generic type like a string.
      If you ever want to switch to another database, you would just have to change the model layer, not the entire code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            __adrien__ Adrien Candiotti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: