public async Task CreateAsync(ArangoHandle database, string collection, ArangoIndex request, CancellationToken cancellationToken = default) { await SendAsync <JObject>(HttpMethod.Post, ApiPath(database, $"index?collection={collection}"), JsonConvert.SerializeObject(request), cancellationToken : cancellationToken); }
public async Task CreateAsync(ArangoHandle database, string collection, ArangoIndex request, CancellationToken cancellationToken = default) { await SendAsync <ArangoVoid>(database, HttpMethod.Post, ApiPath(database, $"index?collection={collection}"), request, cancellationToken : cancellationToken); }
public async Task EnsureIndexAsync(ArangoHandle database, string collection, ArangoIndex request, CancellationToken cancellationToken = default) { await SendAsync <JObject>(HttpMethod.Post, $"{Server}/_db/{DbName(database)}/_api/index?collection={collection}", JsonConvert.SerializeObject(request), cancellationToken : cancellationToken); }