Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It looks like I somehow missed 2 more spots. #77

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Core.Arango.Tests/DocumentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Core.Arango.Protocol;
using Core.Arango.Tests.Core;
using Xunit;
using Xunit.Sdk;

namespace Core.Arango.Tests
{
Expand Down Expand Up @@ -58,13 +59,13 @@ public async Task Update(string serializer)
{
Key = "abc",
Name = "a"
});
}, exclusive: true);

var res = await Arango.Document.UpdateAsync("test", "test", new
{
Key = "abc",
Name = "c"
}, returnNew: true, returnOld: true);
}, returnNew: true, returnOld: true, exclusive: true);

Assert.Equal(createRes.Id, res.Id);
Assert.Equal(createRes.Key, res.Key);
Expand Down
5 changes: 4 additions & 1 deletion Core.Arango/Modules/Internal/ArangoDocumentModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ public async Task<List<ArangoUpdateResult<TR>>> DeleteManyAsync<T, TR>(ArangoHan
if (ignoreRevs.HasValue)
parameter.Add("ignoreRevs", ignoreRevs.Value.ToString().ToLowerInvariant());

if (exclusive.HasValue)
parameter.Add("exclusive", exclusive.Value.ToString().ToLowerInvariant());

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

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

if (exclusive.HasValue)
parameter.Add("exclusive", ignoreRevs.Value.ToString().ToLowerInvariant());
parameter.Add("exclusive", exclusive.Value.ToString().ToLowerInvariant());

var query = AddQueryString(
ApiPath(database, $"document/{UrlEncode(collection)}"), parameter);
Expand Down
Loading