@@ -120,15 +120,15 @@ export default class RequestMessage {
120120
121121 /**
122122 * Create a new BEGIN message.
123- * @param {Bookmark } bookmark the bookmark .
123+ * @param {Bookmarks } bookmarks the bookmarks .
124124 * @param {TxConfig } txConfig the configuration.
125125 * @param {string } database the database name.
126126 * @param {string } mode the access mode.
127127 * @param {string } impersonatedUser the impersonated user.
128128 * @return {RequestMessage } new BEGIN message.
129129 */
130- static begin ( { bookmark , txConfig, database, mode, impersonatedUser } = { } ) {
131- const metadata = buildTxMetadata ( bookmark , txConfig , database , mode , impersonatedUser )
130+ static begin ( { bookmarks , txConfig, database, mode, impersonatedUser } = { } ) {
131+ const metadata = buildTxMetadata ( bookmarks , txConfig , database , mode , impersonatedUser )
132132 return new RequestMessage (
133133 BEGIN ,
134134 [ metadata ] ,
@@ -156,7 +156,7 @@ export default class RequestMessage {
156156 * Create a new RUN message with additional metadata.
157157 * @param {string } query the cypher query.
158158 * @param {Object } parameters the query parameters.
159- * @param {Bookmark } bookmark the bookmark .
159+ * @param {Bookmarks } bookmarks the bookmarks .
160160 * @param {TxConfig } txConfig the configuration.
161161 * @param {string } database the database name.
162162 * @param {string } mode the access mode.
@@ -166,9 +166,9 @@ export default class RequestMessage {
166166 static runWithMetadata (
167167 query ,
168168 parameters ,
169- { bookmark , txConfig, database, mode, impersonatedUser } = { }
169+ { bookmarks , txConfig, database, mode, impersonatedUser } = { }
170170 ) {
171- const metadata = buildTxMetadata ( bookmark , txConfig , database , mode , impersonatedUser )
171+ const metadata = buildTxMetadata ( bookmarks , txConfig , database , mode , impersonatedUser )
172172 return new RequestMessage (
173173 RUN ,
174174 [ query , parameters , metadata ] ,
@@ -225,7 +225,7 @@ export default class RequestMessage {
225225 * Generate the ROUTE message, this message is used to fetch the routing table from the server
226226 *
227227 * @param {object } routingContext The routing context used to define the routing table. Multi-datacenter deployments is one of its use cases
228- * @param {string[] } bookmarks The list of the bookmark should be used
228+ * @param {string[] } bookmarks The list of the bookmarks should be used
229229 * @param {string } databaseName The name of the database to get the routing table for.
230230 * @return {RequestMessage } the ROUTE message.
231231 */
@@ -244,7 +244,7 @@ export default class RequestMessage {
244244 * Generate the ROUTE message, this message is used to fetch the routing table from the server
245245 *
246246 * @param {object } routingContext The routing context used to define the routing table. Multi-datacenter deployments is one of its use cases
247- * @param {string[] } bookmarks The list of the bookmark should be used
247+ * @param {string[] } bookmarks The list of the bookmarks should be used
248248 * @param {object } databaseContext The context inforamtion of the database to get the routing table for.
249249 * @param {string } databaseContext.databaseName The name of the database to get the routing table.
250250 * @param {string } databaseContext.impersonatedUser The name of the user to impersonation when getting the routing table.
@@ -274,17 +274,17 @@ export default class RequestMessage {
274274
275275/**
276276 * Create an object that represent transaction metadata.
277- * @param {Bookmark } bookmark the bookmark .
277+ * @param {Bookmarks } bookmarks the bookmarks .
278278 * @param {TxConfig } txConfig the configuration.
279279 * @param {string } database the database name.
280280 * @param {string } mode the access mode.
281281 * @param {string } impersonatedUser the impersonated user mode.
282282 * @return {Object } a metadata object.
283283 */
284- function buildTxMetadata ( bookmark , txConfig , database , mode , impersonatedUser ) {
284+ function buildTxMetadata ( bookmarks , txConfig , database , mode , impersonatedUser ) {
285285 const metadata = { }
286- if ( ! bookmark . isEmpty ( ) ) {
287- metadata . bookmarks = bookmark . values ( )
286+ if ( ! bookmarks . isEmpty ( ) ) {
287+ metadata . bookmarks = bookmarks . values ( )
288288 }
289289 if ( txConfig . timeout !== null ) {
290290 metadata . tx_timeout = txConfig . timeout
0 commit comments