@@ -311,7 +311,7 @@ class QueryConfig<T = EagerResult> {
311311 * A BookmarkManager is a piece of software responsible for keeping casual consistency between different pieces of work by sharing bookmarks
312312 * between the them.
313313 *
314- * By default, it uses the driver's non mutable driver level bookmark manager. See, {@link Driver.queryBookmarkManager }
314+ * By default, it uses the driver's non mutable driver level bookmark manager. See, {@link Driver.defaultExecuteQueryBookmarkManager }
315315 *
316316 * Can be set to null to disable causal chaining.
317317 * @type {BookmarkManager|null }
@@ -338,7 +338,7 @@ class Driver {
338338 private readonly _createConnectionProvider : CreateConnectionProvider
339339 private _connectionProvider : ConnectionProvider | null
340340 private readonly _createSession : CreateSession
341- private readonly _queryBookmarkManager : BookmarkManager
341+ private readonly _defaultExecuteQueryBookmarkManager : BookmarkManager
342342 private readonly _queryExecutor : QueryExecutor
343343
344344 /**
@@ -369,7 +369,7 @@ class Driver {
369369 this . _log = log
370370 this . _createConnectionProvider = createConnectionProvider
371371 this . _createSession = createSession
372- this . _queryBookmarkManager = bookmarkManager ( )
372+ this . _defaultExecuteQueryBookmarkManager = bookmarkManager ( )
373373 this . _queryExecutor = createQueryExecutor ( this . session . bind ( this ) )
374374
375375 /**
@@ -389,8 +389,8 @@ class Driver {
389389 * @type {BookmarkManager }
390390 * @returns {BookmarkManager }
391391 */
392- get queryBookmarkManager ( ) : BookmarkManager {
393- return this . _queryBookmarkManager
392+ get defaultExecuteQueryBookmarkManager ( ) : BookmarkManager {
393+ return this . _defaultExecuteQueryBookmarkManager
394394 }
395395
396396 /**
@@ -472,7 +472,7 @@ class Driver {
472472 * @see https://github.com/neo4j/neo4j-javascript-driver/discussions/1052
473473 */
474474 async executeQuery < T = EagerResult > ( query : Query , parameters ?: any , config : QueryConfig < T > = { } ) : Promise < T > {
475- const bookmarkManager = config . bookmarkManager === null ? undefined : ( config . bookmarkManager ?? this . queryBookmarkManager )
475+ const bookmarkManager = config . bookmarkManager === null ? undefined : ( config . bookmarkManager ?? this . defaultExecuteQueryBookmarkManager )
476476 const resultTransformer = ( config . resultTransformer ?? resultTransformers . eagerResultTransformer ( ) ) as ResultTransformer < T >
477477 const routingConfig : string = config . routing ?? routing . WRITERS
478478
0 commit comments