public async Task Collection() { await Arango.CreateCollectionAsync("test", "test", ArangoCollectionType.Document); await Arango.CreateDocumentAsync("test", "test", new { Key = "abc", Name = "a" }); var res = await Arango.UpdateDocumentAsync("test", "test", new { Key = "abc", Name = "c" }, returnNew : true, returnOld : true); }
public async Task Collection() { await Arango.CreateCollectionAsync("test", new ArangoCollection { Name = "test", Type = ArangoCollectionType.Document, KeyOptions = new ArangoKeyOptions { Type = ArangoKeyType.Padded, AllowUserKeys = false } }); await Arango.CreateDocumentAsync("test", "test", new { Name = "test" }); }