Click or drag to resize

GraphApiClient Class

A client for interacting with ArangoDB Graphs endpoints, implementing IGraphApiClient.
Inheritance Hierarchy
System.Object
  ArangoDBNetStandard.ApiClientBase
    ArangoDBNetStandard.GraphApi.GraphApiClient

Namespace:  ArangoDBNetStandard.GraphApi
Assembly:  ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax
public class GraphApiClient : ApiClientBase, 
	IGraphApiClient

The GraphApiClient type exposes the following members.

Constructors
  NameDescription
Public methodGraphApiClient(IApiClientTransport)
Create an instance of GraphApiClient using the provided transport layer and the default JSON serialization.
Public methodGraphApiClient(IApiClientTransport, IApiClientSerialization)
Create an instance of GraphApiClient using the provided transport and serialization layers.
Top
Methods
  NameDescription
Public methodDeleteEdgeAsync<T>(String, String, DeleteEdgeQuery)
Removes an edge based on its document ID.
Public methodDeleteEdgeAsync<T>(String, String, String, DeleteEdgeQuery)
Removes an edge from the collection. DELETE /_api/gharial/{graph}/edge/{collection}/{edge}
Public methodDeleteEdgeDefinitionAsync
Remove one edge definition from the graph. This will only remove the edge collection, the vertex collections remain untouched and can still be used in your queries. DELETE/_api/gharial/{graph}/edge/{definition}
Public methodDeleteGraphAsync
Deletes an existing graph object by name. Optionally all collections not used by other graphs can be deleted as well, using DeleteGraphQuery. DELETE /_api/gharial/{graph-name}
Public methodDeleteVertexAsync<T>(String, String, DeleteVertexQuery)
Removes a vertex based on its document ID.
Public methodDeleteVertexAsync<T>(String, String, String, DeleteVertexQuery)
Removes a vertex from the collection. DELETE/_api/gharial/{graph}/vertex/{collection}/{vertex}
Public methodDeleteVertexCollectionAsync
Removes a vertex collection from the graph and optionally deletes the collection, if it is not used in any other graph. It can only remove vertex collections that are no longer part of edge definitions, if they are used in edge definitions you are required to modify those first. DELETE/_api/gharial/{graph}/vertex/{collection}
Protected methodDeserializeJsonFromStream<T> (Inherited from ApiClientBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetApiErrorException
Gets an ApiErrorException from the provided error response.
(Inherited from ApiClientBase.)
Protected methodGetContent<T> (Inherited from ApiClientBase.)
Protected methodGetContentString<T> (Inherited from ApiClientBase.)
Public methodGetEdgeAsync<T>(String, String, GetEdgeQuery)
Gets an edge from the given graph using the edge's document-handle. GET /_api/gharial/{graph}/edge/{collection}/{edge}
Public methodGetEdgeAsync<T>(String, String, String, GetEdgeQuery)
Gets an edge from the given graph using the edge collection and _key attribute.
Public methodGetEdgeCollectionsAsync
Lists all edge collections within this graph. GET /_api/gharial/{graph}/edge
Public methodGetGraphAsync
Selects information for a given graph. Will return the edge definitions as well as the orphan collections. GET /_api/gharial/{graph}
Public methodGetGraphsAsync
Lists all graphs stored in this database. GET /_api/gharial
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVertexAsync<T>(String, String, GetVertexQuery)
Gets a vertex based on its document ID.
Public methodGetVertexAsync<T>(String, String, String, GetVertexQuery)
Gets a vertex from the given collection. GET/_api/gharial/{graph}/vertex/{collection}/{vertex}
Public methodGetVertexCollectionsAsync
Lists all vertex collections within the given graph. GET /_api/gharial/{graph}/vertex
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPatchEdgeAsync<T, U>(String, String, T, PatchEdgeQuery)
Updates the data of the specific edge based on its document ID.
Public methodPatchEdgeAsync<T, U>(String, String, String, T, PatchEdgeQuery)
Updates the data of the specific edge in the collection. PATCH/_api/gharial/{graph}/edge/{collection}/{edge}
Public methodPatchVertexAsync<T, U>(String, String, T, PatchVertexQuery)
Updates the data of the specific vertex based on its document ID.
Public methodPatchVertexAsync<T, U>(String, String, String, T, PatchVertexQuery)
Updates the data of the specific vertex in the collection. PATCH/_api/gharial/{graph}/vertex/{collection}/{vertex}
Public methodPostEdgeAsync<T>
Creates an edge in an existing graph. The edge must contain a _from and _to value referencing valid vertices in the graph. The edge has to conform to the definition of the edge collection it is added to. POST /_api/gharial/{graph}/edge/{collection}
Public methodPostEdgeDefinitionAsync
Adds an additional edge definition to the graph. This edge definition has to contain a collection and an array of each from and to vertex collections. An edge definition can only be added if this definition is either not used in any other graph, or it is used with exactly the same definition. It is not possible to store a definition “e” from “v1” to “v2” in the one graph, and “e” from “v2” to “v1” in the other graph. POST /_api/gharial/{graph}/edge
Public methodPostGraphAsync
Creates a new graph in the graph module. POST /_api/gharial
Public methodPostVertexAsync<T>
Adds a vertex to the given collection. POST/_api/gharial/{graph}/vertex/{collection}
Public methodPostVertexCollectionAsync
Adds a vertex collection to the set of orphan collections of the graph. If the collection does not exist, it will be created. POST /_api/gharial/{graph}/vertex
Public methodPutEdgeAsync<T>(String, String, T, PutEdgeQuery)
Replaces the data of an edge based on its document ID.
Public methodPutEdgeAsync<T>(String, String, String, T, PutEdgeQuery)
Replaces the data of an edge in the collection. PUT /_api/gharial/{graph}/edge/{collection}/{edge}
Public methodPutEdgeDefinitionAsync
Change one specific edge definition. This will modify all occurrences of this definition in all graphs known to your database. PUT/_api/gharial/{graph}/edge/{definition}
Public methodPutVertexAsync<T>(String, String, T, PutVertexQuery)
Replaces the data of a vertex based on its document ID.
Public methodPutVertexAsync<T>(String, String, String, T, PutVertexQuery)
Replaces the data of a vertex in the collection. PUT/_api/gharial/{graph}/vertex/{collection}/{vertex}
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodValidateDocumentId
Checks whether the provided document ID is in the correct form of "{collection}/{key}".
(Inherited from ApiClientBase.)
Top
Fields
  NameDescription
Protected field_graphApiPath
The root path of the API.
Protected field_transport
The transport client used to communicate with the ArangoDB host.
Top
See Also