[CDRIVER-483] Provide mechanism to return inserted ids for bulk_operation Created: 11/Dec/14  Updated: 03/May/17  Resolved: 06/Jan/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.0.2
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Tyler Brock Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by Hannes Magnusson [ 05/Jan/16 ]

The CRUD API Spec declares these as optional:

  /**
   * Map of the index of the operation to the id of the inserted document.
   *
   * NOT REQUIRED: Drivers may choose to not provide this property.
   */
  insertedIds: Map<Int64, any>;

mongoc has opted not to implement insertedIds, but does have upsertedIds as part of the mongoc_write_result_t struct, and part of the reply out param.
See: http://api.mongodb.org/c/current/bulk.html

Generated at Wed Feb 07 21:09:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.