ensureID should return consistent types

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: CRUD
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Kristofer Brandow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: