diff --git a/packages/core/src/result-summary.ts b/packages/core/src/result-summary.ts index fbfa21085..f4a7c6e1b 100644 --- a/packages/core/src/result-summary.ts +++ b/packages/core/src/result-summary.ts @@ -29,7 +29,6 @@ class ResultSummary { query: { text: string, parameters: { [key: string]: any } } queryType: string counters: QueryStatistics - updateStatistics: QueryStatistics plan: Plan | false profile: ProfiledPlan | false notifications: Notification[] @@ -74,12 +73,6 @@ class ResultSummary { */ this.counters = new QueryStatistics(metadata.stats ?? {}) // for backwards compatibility, remove in future version - /** - * Use {@link ResultSummary.counters} instead. - * @type {QueryStatistics} - * @deprecated - */ - this.updateStatistics = this.counters /** * This describes how the database will execute the query. diff --git a/packages/neo4j-driver-deno/lib/core/result-summary.ts b/packages/neo4j-driver-deno/lib/core/result-summary.ts index 7dabd337c..fb2e74780 100644 --- a/packages/neo4j-driver-deno/lib/core/result-summary.ts +++ b/packages/neo4j-driver-deno/lib/core/result-summary.ts @@ -29,7 +29,6 @@ class ResultSummary { query: { text: string, parameters: { [key: string]: any } } queryType: string counters: QueryStatistics - updateStatistics: QueryStatistics plan: Plan | false profile: ProfiledPlan | false notifications: Notification[] @@ -74,12 +73,6 @@ class ResultSummary { */ this.counters = new QueryStatistics(metadata.stats ?? {}) // for backwards compatibility, remove in future version - /** - * Use {@link ResultSummary.counters} instead. - * @type {QueryStatistics} - * @deprecated - */ - this.updateStatistics = this.counters /** * This describes how the database will execute the query. diff --git a/packages/neo4j-driver/examples/node.js b/packages/neo4j-driver/examples/node.js index fe7e5d17a..e008a1bc1 100644 --- a/packages/neo4j-driver/examples/node.js +++ b/packages/neo4j-driver/examples/node.js @@ -47,7 +47,7 @@ streamResult.subscribe({ const summary = streamResult.summarize() // Print number of nodes created console.log('') - console.log(summary.updateStatistics.nodesCreated()) + console.log(summary.counters.nodesCreated()) streamSession.close() }, onError: function (error) { @@ -68,7 +68,7 @@ promiseResult const summary = promiseResult.summarize() // Print number of nodes created console.log('') - console.log(summary.updateStatistics.nodesCreated()) + console.log(summary.counters.nodesCreated()) }) .catch(function (error) { console.log(error)