neo4j-driver 4.4.6 → 5.0.0-alpha02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -222,7 +222,7 @@ rxSession
222
222
  .records()
223
223
  .pipe(
224
224
  map(record => record.get('name')),
225
- concat(rxSession.close())
225
+ concatWith(rxSession.close())
226
226
  )
227
227
  .subscribe({
228
228
  next: data => console.log(data),
@@ -373,8 +373,8 @@ try {
373
373
  rxSession
374
374
  .beginTransaction()
375
375
  .pipe(
376
- flatMap(txc =>
377
- concat(
376
+ mergeMap(txc =>
377
+ concatWith(
378
378
  txc
379
379
  .run(
380
380
  'MERGE (bob:Person {name: $nameParam}) RETURN bob.name AS name',
@@ -397,7 +397,7 @@ rxSession
397
397
  of('Second query completed'),
398
398
  txc.commit(),
399
399
  of('committed')
400
- ).pipe(catchError(err => txc.rollback().pipe(throwError(err))))
400
+ ).pipe(catchError(err => txc.rollback().pipe(throwError(() => err))))
401
401
  )
402
402
  )
403
403
  .subscribe({