Click or drag to resize

ISessionExecuteGraphAsync Method (IGraphStatement, String)

Executes a graph statement asynchronously with the provided graph execution profile. The graph execution profile must have been added previously to the Cluster using WithExecutionProfiles(ActionIExecutionProfileOptions).

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.13.0
Syntax
C#
Task<GraphResultSet> ExecuteGraphAsync(
	IGraphStatement statement,
	string executionProfileName
)

Parameters

statement
Type: Cassandra.DataStax.GraphIGraphStatement
The graph statement containing the query
executionProfileName
Type: SystemString
The graph execution profile name to use while executing this statement.

Return Value

Type: TaskGraphResultSet
Examples
Task<GraphResultSet$gt; task = session.ExecuteGraphAsync(new SimpleGraphStatement("g.V()"), "graphProfile");
See Also