Skip to content

Commit 24eb43c

Browse files
committed
fix type issue
1 parent e7b2a63 commit 24eb43c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

core/src/result-summary.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,19 @@ class QueryStatistics {
339339
* @param {Object} statistics - Result statistics
340340
*/
341341
constructor(statistics: any) {
342-
this._stats = new Stats()
342+
this._stats = {
343+
nodesCreated: 0,
344+
nodesDeleted: 0,
345+
relationshipsCreated: 0,
346+
relationshipsDeleted: 0,
347+
propertiesSet: 0,
348+
labelsAdded: 0,
349+
labelsRemoved: 0,
350+
indexesAdded: 0,
351+
indexesRemoved: 0,
352+
constraintsAdded: 0,
353+
constraintsRemoved: 0
354+
}
343355
this._systemUpdates = 0
344356
Object.keys(statistics).forEach(index => {
345357
// To camelCase

0 commit comments

Comments
 (0)