public async Task CreateViewAsync(ArangoHandle database, ArangoView view, CancellationToken cancellationToken = default) { await SendAsync <JObject>(HttpMethod.Post, $"{Server}/_db/{DbName(database)}/_api/view", JsonConvert.SerializeObject(view), cancellationToken : cancellationToken); }
public async Task CreateAsync(ArangoHandle database, ArangoView view, CancellationToken cancellationToken = default) { await SendAsync <ArangoVoid>(database, HttpMethod.Post, ApiPath(database, "view"), view, cancellationToken : cancellationToken); }
public async Task CreateAsync(ArangoHandle database, ArangoView view, CancellationToken cancellationToken = default) { await SendAsync <JObject>(HttpMethod.Post, ApiPath(database, "view"), Serialize(view), cancellationToken : cancellationToken); }