[GODRIVER-582] ensureID should return consistent types Created: 27/Sep/18  Updated: 10/Jan/19  Resolved: 10/Jan/19

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates GODRIVER-660 _id should be prepended, not appended Closed

 Description   

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.


Generated at Thu Feb 08 08:34:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.