@@ -44,12 +44,12 @@ class Session {
44
44
* @protected
45
45
* @param {Object } args
46
46
* @param {string } args.mode the default access mode for this session.
47
- * @param {ConnectionProvider } args.connectionProvider - the connection provider to acquire connections from.
48
- * @param {Bookmark } args.bookmark - the initial bookmark for this session.
47
+ * @param {ConnectionProvider } args.connectionProvider - The connection provider to acquire connections from.
48
+ * @param {Bookmark } args.bookmark - The initial bookmark for this session.
49
49
* @param {string } args.database the database name
50
- * @param {Object } args.config={} - this driver configuration.
51
- * @param {boolean } args.reactive - whether this session should create reactive streams
52
- * @param {number } args.fetchSize - defines how many records is pulled in each pulling batch
50
+ * @param {Object } args.config={} - This driver configuration.
51
+ * @param {boolean } args.reactive - Whether this session should create reactive streams
52
+ * @param {number } args.fetchSize - Defines how many records is pulled in each pulling batch
53
53
*/
54
54
constructor ( {
55
55
mode,
@@ -91,8 +91,8 @@ class Session {
91
91
* @public
92
92
* @param {mixed } query - Cypher query to execute
93
93
* @param {Object } parameters - Map with parameters to use in query
94
- * @param {TransactionConfig } [transactionConfig] - configuration for the new auto-commit transaction.
95
- * @return {Result } - New Result
94
+ * @param {TransactionConfig } [transactionConfig] - Configuration for the new auto-commit transaction.
95
+ * @return {Result } New Result.
96
96
*/
97
97
run ( query , parameters , transactionConfig ) {
98
98
const { validatedQuery, params } = validateQueryAndParameters (
@@ -151,8 +151,8 @@ class Session {
151
151
*
152
152
* While a transaction is open the session cannot be used to run queries outside the transaction.
153
153
*
154
- * @param {TransactionConfig } [transactionConfig] - configuration for the new auto-commit transaction.
155
- * @returns {Transaction } - New Transaction
154
+ * @param {TransactionConfig } [transactionConfig] - Configuration for the new auto-commit transaction.
155
+ * @returns {Transaction } New Transaction.
156
156
*/
157
157
beginTransaction ( transactionConfig ) {
158
158
// this function needs to support bookmarks parameter for backwards compatibility
@@ -202,7 +202,7 @@ class Session {
202
202
/**
203
203
* Return the bookmark received following the last completed {@link Transaction}.
204
204
*
205
- * @return {string[] } a reference to a previous transaction
205
+ * @return {string[] } A reference to a previous transaction.
206
206
*/
207
207
lastBookmark ( ) {
208
208
return this . _lastBookmark . values ( )
@@ -216,10 +216,10 @@ class Session {
216
216
* delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's
217
217
* `maxTransactionRetryTime` property in milliseconds.
218
218
*
219
- * @param {function(tx: Transaction): Promise } transactionWork - callback that executes operations against
219
+ * @param {function(tx: Transaction): Promise } transactionWork - Callback that executes operations against
220
220
* a given {@link Transaction}.
221
- * @param {TransactionConfig } [transactionConfig] - configuration for all transactions started to execute the unit of work.
222
- * @return {Promise } resolved promise as returned by the given function or rejected promise when given
221
+ * @param {TransactionConfig } [transactionConfig] - Configuration for all transactions started to execute the unit of work.
222
+ * @return {Promise } Resolved promise as returned by the given function or rejected promise when given
223
223
* function or commit fails.
224
224
*/
225
225
readTransaction ( transactionWork , transactionConfig ) {
@@ -235,10 +235,10 @@ class Session {
235
235
* delay of 1 second and maximum retry time of 30 seconds. Maximum retry time is configurable via driver config's
236
236
* `maxTransactionRetryTime` property in milliseconds.
237
237
*
238
- * @param {function(tx: Transaction): Promise } transactionWork - callback that executes operations against
238
+ * @param {function(tx: Transaction): Promise } transactionWork - Callback that executes operations against
239
239
* a given {@link Transaction}.
240
- * @param {TransactionConfig } [transactionConfig] - configuration for all transactions started to execute the unit of work.
241
- * @return {Promise } resolved promise as returned by the given function or rejected promise when given
240
+ * @param {TransactionConfig } [transactionConfig] - Configuration for all transactions started to execute the unit of work.
241
+ * @return {Promise } Resolved promise as returned by the given function or rejected promise when given
242
242
* function or commit fails.
243
243
*/
244
244
writeTransaction ( transactionWork , transactionConfig ) {
@@ -255,7 +255,7 @@ class Session {
255
255
256
256
/**
257
257
* Update value of the last bookmark.
258
- * @param {Bookmark } newBookmark the new bookmark.
258
+ * @param {Bookmark } newBookmark - The new bookmark.
259
259
*/
260
260
_updateBookmark ( newBookmark ) {
261
261
if ( newBookmark && ! newBookmark . isEmpty ( ) ) {
0 commit comments