Table of Contents

Method RunAsync

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

RunAsync(string, Action<TransactionConfigBuilder>)

Asynchronously run a query within an AutoCommit transaction. Uses the specific TransactionConfig and returns 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, Action<TransactionConfigBuilder> action = null)

Parameters

query string

A Cypher query.

action Action<TransactionConfigBuilder>

Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction.

Returns

Task<IResultCursor>

A task of a stream of result values and associated metadata.

RunAsync(string, IDictionary<string, object>, Action<TransactionConfigBuilder>)

Asynchronously run a query within an AutoCommit transaction. Uses the specific TransactionConfig and returns 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, Action<TransactionConfigBuilder> action = null)

Parameters

query string

A Cypher query.

parameters IDictionary<string, object>

Input parameters for the query.

action Action<TransactionConfigBuilder>

Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction.

Returns

Task<IResultCursor>

A task of a stream of result values and associated metadata.

RunAsync(Query, Action<TransactionConfigBuilder>)

Asynchronously run a query within an AutoCommit transaction. Uses the specific TransactionConfig and return a task of result stream.

Task<IResultCursor> RunAsync(Query query, Action<TransactionConfigBuilder> action = null)

Parameters

query Query

A Cypher query, Query.

action Action<TransactionConfigBuilder>

Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction.

Returns

Task<IResultCursor>

A task of a stream of result values and associated metadata.