Skip to content

Commit 6dc7735

Browse files
It looks like I somehow missed 2 more spots.
1 parent db858a0 commit 6dc7735

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Core.Arango.Tests/DocumentTest.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Core.Arango.Protocol;
66
using Core.Arango.Tests.Core;
77
using Xunit;
8+
using Xunit.Sdk;
89

910
namespace Core.Arango.Tests
1011
{
@@ -58,13 +59,13 @@ public async Task Update(string serializer)
5859
{
5960
Key = "abc",
6061
Name = "a"
61-
});
62+
}, exclusive: true);
6263

6364
var res = await Arango.Document.UpdateAsync("test", "test", new
6465
{
6566
Key = "abc",
6667
Name = "c"
67-
}, returnNew: true, returnOld: true);
68+
}, returnNew: true, returnOld: true, exclusive: true);
6869

6970
Assert.Equal(createRes.Id, res.Id);
7071
Assert.Equal(createRes.Key, res.Key);

Core.Arango/Modules/Internal/ArangoDocumentModule.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ public async Task<List<ArangoUpdateResult<TR>>> DeleteManyAsync<T, TR>(ArangoHan
195195
if (ignoreRevs.HasValue)
196196
parameter.Add("ignoreRevs", ignoreRevs.Value.ToString().ToLowerInvariant());
197197

198+
if (exclusive.HasValue)
199+
parameter.Add("exclusive", exclusive.Value.ToString().ToLowerInvariant());
200+
198201
var query = AddQueryString(
199202
ApiPath(database, $"document/{collection}"), parameter);
200203

@@ -256,7 +259,7 @@ public async Task<List<ArangoUpdateResult<TR>>> UpdateManyAsync<T, TR>(ArangoHan
256259
parameter.Add("ignoreRevs", ignoreRevs.Value.ToString().ToLowerInvariant());
257260

258261
if (exclusive.HasValue)
259-
parameter.Add("exclusive", ignoreRevs.Value.ToString().ToLowerInvariant());
262+
parameter.Add("exclusive", exclusive.Value.ToString().ToLowerInvariant());
260263

261264
var query = AddQueryString(
262265
ApiPath(database, $"document/{UrlEncode(collection)}"), parameter);

0 commit comments

Comments
 (0)