Click or drag to resize

IGraphApiClientPostEdgeAsyncT Method

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}

Namespace:  ArangoDBNetStandard.GraphApi
Assembly:  ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax
Task<PostEdgeResponse<T>> PostEdgeAsync<T>(
	string graphName,
	string collectionName,
	T edge,
	PostEdgeQuery query = null,
	ApiClientSerializationOptions serializationOptions = null
)

Parameters

graphName
Type: SystemString
The name of the graph.
collectionName
Type: SystemString
The name of the edge collection the edge belongs to.
edge
Type: T
The edge to create.
query (Optional)
Type: ArangoDBNetStandard.GraphApi.ModelsPostEdgeQuery
serializationOptions (Optional)
Type: ArangoDBNetStandard.SerializationApiClientSerializationOptions
The serialization options. When the value is null the the serialization options should be provided by the serializer, otherwise the given options should be used.

Type Parameters

T
The type of the edge to create. Must contain valid _from and _to properties once serialized. null properties are preserved during serialization.

Return Value

Type: TaskPostEdgeResponseT
See Also