Skip to content

[Typing] add proper return fields to QueryStatistics #599

Closed
@A-ZC-Lau

Description

@A-ZC-Lau

For the function updates() in result-summary.js it is currently returning anything, which is not very helpful.

Current jsdoc

  /**
   * Returns the query statistics updates in a dictionary.
   * @returns {*}
   */

updates is actually returning this._stats, which has very clearly defined properties

    this._stats = {
      nodesCreated: 0,
      nodesDeleted: 0,
      relationshipsCreated: 0,
      relationshipsDeleted: 0,
      propertiesSet: 0,
      labelsAdded: 0,
      labelsRemoved: 0,
      indexesAdded: 0,
      indexesRemoved: 0,
      constraintsAdded: 0,
      constraintsRemoved: 0
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions