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

ensureID should return consistent types

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

      The ensureID function will add an _id field to a document being inserted. In the case of inserting an _id the library will return an objectid.ObjectID, while a user found _id will return a *bson.Element. We should always return a *bson.Element. We should always return a *bson.Value.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: