/// <summary> /// Executes a batch of traversals. /// </summary> /// <param name="session">The session to extend.</param> /// <param name="batch">The batch of traversals to execute.</param> /// <seealso cref="Batch"/> public static GraphResultSet ExecuteGraph(this ISession session, ITraversalBatch batch) { return(session.ExecuteGraph(batch.ToGraphStatement())); }
/// <summary> /// Asynchronously executes a batch of traversals. /// </summary> /// <param name="session">The session to extend.</param> /// <param name="batch">The batch of traversals to execute.</param> /// <seealso cref="Batch"/> public static Task <GraphResultSet> ExecuteGraphAsync(this ISession session, ITraversalBatch batch) { return(session.ExecuteGraphAsync(batch.ToGraphStatement())); }