Skip to content

Commit cc2d730

Browse files
authored
Remove deprecated updateStatistics from ResultSummary (#1342)
1 parent a6d567c commit cc2d730

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

packages/core/src/result-summary.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class ResultSummary<T extends NumberOrInteger = Integer> {
2929
query: { text: string, parameters: { [key: string]: any } }
3030
queryType: string
3131
counters: QueryStatistics
32-
updateStatistics: QueryStatistics
3332
plan: Plan | false
3433
profile: ProfiledPlan | false
3534
notifications: Notification[]
@@ -74,12 +73,6 @@ class ResultSummary<T extends NumberOrInteger = Integer> {
7473
*/
7574
this.counters = new QueryStatistics(metadata.stats ?? {})
7675
// for backwards compatibility, remove in future version
77-
/**
78-
* Use {@link ResultSummary.counters} instead.
79-
* @type {QueryStatistics}
80-
* @deprecated
81-
*/
82-
this.updateStatistics = this.counters
8376

8477
/**
8578
* This describes how the database will execute the query.

packages/neo4j-driver-deno/lib/core/result-summary.ts

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/neo4j-driver/examples/node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ streamResult.subscribe({
4747
const summary = streamResult.summarize()
4848
// Print number of nodes created
4949
console.log('')
50-
console.log(summary.updateStatistics.nodesCreated())
50+
console.log(summary.counters.nodesCreated())
5151
streamSession.close()
5252
},
5353
onError: function (error) {
@@ -68,7 +68,7 @@ promiseResult
6868
const summary = promiseResult.summarize()
6969
// Print number of nodes created
7070
console.log('')
71-
console.log(summary.updateStatistics.nodesCreated())
71+
console.log(summary.counters.nodesCreated())
7272
})
7373
.catch(function (error) {
7474
console.log(error)

0 commit comments

Comments
 (0)