public async Task CreateAnalyzerAsync(ArangoHandle database,
                                       ArangoAnalyzer analyzer,
                                       CancellationToken cancellationToken = default)
 {
     await SendAsync <QueryResponse <JObject> >(HttpMethod.Post,
                                                $"{Server}/_db/{DbName(database)}/_api/analyzer",
                                                JsonConvert.SerializeObject(analyzer, JsonSerializerSettings),
                                                cancellationToken : cancellationToken);
 }
Beispiel #2
0
 public async Task CreateAsync(ArangoHandle database,
                               ArangoAnalyzer analyzer,
                               CancellationToken cancellationToken = default)
 {
     await SendAsync <QueryResponse <ArangoVoid> >(database, HttpMethod.Post,
                                                   ApiPath(database, "analyzer"),
                                                   analyzer,
                                                   cancellationToken : cancellationToken);
 }
Beispiel #3
0
 public async Task CreateAsync(ArangoHandle database,
                               ArangoAnalyzer analyzer,
                               CancellationToken cancellationToken = default)
 {
     await SendAsync <QueryResponse <JObject> >(HttpMethod.Post,
                                                ApiPath(database, "analyzer"),
                                                Serialize(analyzer),
                                                cancellationToken : cancellationToken);
 }