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

ObjectId is not read to string by Decode when asked

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 0.0.12
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: