Skip to content

Commit

Permalink
Add Job#id
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma4345 committed Jun 12, 2024
1 parent f8e7811 commit fe0176e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ This driver uses semantic versioning:
- A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_
changes that require changes in your code to upgrade.

## [Unreleased]

### Added

- Added readonly `Job#id` property

This property was not previously exposed.

## [9.0.0-preview.3]

### Removed
Expand Down Expand Up @@ -1896,6 +1904,7 @@ For a detailed list of changes between pre-release versions of v7 see the

Graph methods now only return the relevant part of the response body.

[unreleased]: https://github.com/arangodb/arangojs/compare/v9.0.0-preview.3...HEAD
[9.0.0-preview.3]: https://github.com/arangodb/arangojs/compare/v9.0.0-preview.2...v9.0.0-preview.3
[9.0.0-preview.2]: https://github.com/arangodb/arangojs/compare/v9.0.0-preview.1...v9.0.0-preview.2
[9.0.0-preview.1]: https://github.com/arangodb/arangojs/compare/v8.8.1...v9.0.0-preview.1
Expand Down
7 changes: 7 additions & 0 deletions src/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ export class Job<T = any> {
this._transformError = transformError;
}

/**
* The job's ID.
*/
get id(): string {
return this._id;
}

/**
* Whether the job's results have been loaded. If set to `true`, the job's
* result can be accessed from {@link Job.result}.
Expand Down

0 comments on commit fe0176e

Please sign in to comment.