Method RunAsync
RunAsync(string)
Asynchronously run a query and return a task of result stream. This method accepts a String representing a Cypher query which will be compiled into a query object that can be used to efficiently execute this query multiple times. This method optionally accepts a set of parameters which will be injected into the query object query by Neo4j.
Task<IResultCursor> RunAsync(string query)
Parameters
query
stringA Cypher query.
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.
Exceptions
- TransactionClosedException
Thrown when used in a transaction that has previously been closed.
RunAsync(string, object)
Asynchronously execute a query and return a task of result stream.
Task<IResultCursor> RunAsync(string query, object parameters)
Parameters
query
stringA Cypher query.
parameters
objectA parameter dictionary which is made of prop.Name=prop.Value pairs would be created.
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.
Exceptions
- TransactionClosedException
Thrown when used in a transaction that has previously been closed.
RunAsync(string, IDictionary<string, object>)
Asynchronously run a query and return a task of result stream. This method accepts a String representing a Cypher query which will be compiled into a query object that can be used to efficiently execute this query multiple times. This method optionally accepts a set of parameters which will be injected into the query object query by Neo4j.
Task<IResultCursor> RunAsync(string query, IDictionary<string, object> parameters)
Parameters
query
stringA Cypher query.
parameters
IDictionary<string, object>Input parameters for the query.
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.
Exceptions
- TransactionClosedException
Thrown when used in a transaction that has previously been closed.
RunAsync(Query)
Asynchronously execute a query and return a task of result stream.
Task<IResultCursor> RunAsync(Query query)
Parameters
Returns
- Task<IResultCursor>
A task of a stream of result values and associated metadata.
Exceptions
- TransactionClosedException
Thrown when used in a transaction that has previously been closed.