Table of Contents

Method RunAsync

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

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 string

A 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 string

A Cypher query.

parameters object

A 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 string

A 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

query Query

A Cypher query, 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.