@@ -311,7 +311,7 @@ class QueryConfig<T = EagerResult> {
311
311
* A BookmarkManager is a piece of software responsible for keeping casual consistency between different pieces of work by sharing bookmarks
312
312
* between the them.
313
313
*
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 }
315
315
*
316
316
* Can be set to null to disable causal chaining.
317
317
* @type {BookmarkManager|null }
@@ -338,7 +338,7 @@ class Driver {
338
338
private readonly _createConnectionProvider : CreateConnectionProvider
339
339
private _connectionProvider : ConnectionProvider | null
340
340
private readonly _createSession : CreateSession
341
- private readonly _queryBookmarkManager : BookmarkManager
341
+ private readonly _defaultExecuteQueryBookmarkManager : BookmarkManager
342
342
private readonly _queryExecutor : QueryExecutor
343
343
344
344
/**
@@ -369,7 +369,7 @@ class Driver {
369
369
this . _log = log
370
370
this . _createConnectionProvider = createConnectionProvider
371
371
this . _createSession = createSession
372
- this . _queryBookmarkManager = bookmarkManager ( )
372
+ this . _defaultExecuteQueryBookmarkManager = bookmarkManager ( )
373
373
this . _queryExecutor = createQueryExecutor ( this . session . bind ( this ) )
374
374
375
375
/**
@@ -389,8 +389,8 @@ class Driver {
389
389
* @type {BookmarkManager }
390
390
* @returns {BookmarkManager }
391
391
*/
392
- get queryBookmarkManager ( ) : BookmarkManager {
393
- return this . _queryBookmarkManager
392
+ get defaultExecuteQueryBookmarkManager ( ) : BookmarkManager {
393
+ return this . _defaultExecuteQueryBookmarkManager
394
394
}
395
395
396
396
/**
@@ -472,7 +472,7 @@ class Driver {
472
472
* @see https://github.com/neo4j/neo4j-javascript-driver/discussions/1052
473
473
*/
474
474
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 )
476
476
const resultTransformer = ( config . resultTransformer ?? resultTransformers . eagerResultTransformer ( ) ) as ResultTransformer < T >
477
477
const routingConfig : string = config . routing ?? routing . WRITERS
478
478
0 commit comments