[CSHARP-1324] Possibility of doing an upsert with BulkWriteAsync Created: 17/Jun/15 Updated: 05/Apr/19 Resolved: 17/Jun/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Peter Gordon | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Is it possible to perform an upsert when doing a BulkWriteAsync operation with UpdateOneModel requests? For instance:
|
| Comments |
| Comment by Craig Wilson [ 17/Jun/15 ] |
|
Thanks Peter. |
| Comment by Peter Gordon [ 17/Jun/15 ] |
|
You can close this issue - I was having a moment. Did not realize that UpdateOneModel had a property "IsUpsert" that enables upserts for bulk update operations. Thanks |