Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions packages/core/src/result-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class ResultSummary<T extends NumberOrInteger = Integer> {
query: { text: string, parameters: { [key: string]: any } }
queryType: string
counters: QueryStatistics
updateStatistics: QueryStatistics
plan: Plan | false
profile: ProfiledPlan | false
notifications: Notification[]
Expand Down Expand Up @@ -74,12 +73,6 @@ class ResultSummary<T extends NumberOrInteger = Integer> {
*/
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.
Expand Down
7 changes: 0 additions & 7 deletions packages/neo4j-driver-deno/lib/core/result-summary.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/neo4j-driver/examples/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand Down