GraphApiClient.PostEdgeDefinitionAsync Method |
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
Namespace:
ArangoDBNetStandard.GraphApi
Assembly:
ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntaxpublic virtual Task<PostEdgeDefinitionResponse> PostEdgeDefinitionAsync(
string graphName,
PostEdgeDefinitionBody body
)
Public Overridable Function PostEdgeDefinitionAsync (
graphName As String,
body As PostEdgeDefinitionBody
) As Task(Of PostEdgeDefinitionResponse)
public:
virtual Task<PostEdgeDefinitionResponse^>^ PostEdgeDefinitionAsync(
String^ graphName,
PostEdgeDefinitionBody^ body
)
abstract PostEdgeDefinitionAsync :
graphName : string *
body : PostEdgeDefinitionBody -> Task<PostEdgeDefinitionResponse>
override PostEdgeDefinitionAsync :
graphName : string *
body : PostEdgeDefinitionBody -> Task<PostEdgeDefinitionResponse>
Parameters
- graphName
- Type: System.String
The name of the graph. - body
- Type: ArangoDBNetStandard.GraphApi.Models.PostEdgeDefinitionBody
The information of the edge definition.
Return Value
Type:
Task<PostEdgeDefinitionResponse>Implements
IGraphApiClient.PostEdgeDefinitionAsync(String, PostEdgeDefinitionBody)
See Also