CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 23:07:13 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/neo4j/neo4j-javascript-driver.git
etag: W/"f5a73c875a45d8955fc9aaf1d4be8f40"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=plhtrPQahtOt9g9N0qtuJqBoVBOCs%2Fu2AKveKQItbgOvROX4mBPzNMioBh0O4ZbsAEKFzV3HgxlvR4tTA0pS7SnwNSoY66z1ttTmqEsVJ6%2B%2FbCynGqTQEqkOHSawpmQ5J7s8anBLS52Irad%2BEdKNPVy7p9mvWWm6Da0M1Y3k28Nv42HtTvb3OetLRs8dbao51m81N2kXu4AvvMGdr6s%2Fl87h7mYEIzToT%2BiFbWX84MYaXkegQM4wRpJEy0lCcpRK4iG0nSUPpMEn4dxICPp%2BFg%3D%3D--meniHN2Y2vehHxha--%2B2dHLx8qq%2FKfve7EjqEf2g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1791807215.1753225632; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:07:12 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:07:12 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C05C:1A99C5:1B1FE2:24EE42:688019A0
Introduce `AbortSignal` to `Driver.executeQuery` (#1199) · neo4j/neo4j-javascript-driver@6e303c0 · GitHub
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts
Copy file name to clipboardExpand all lines: packages/core/src/internal/query-executor.ts
Copy file name to clipboardExpand all lines: packages/core/test/driver.test.ts
Copy file name to clipboardExpand all lines: packages/core/test/internal/query-executor.test.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/driver.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/internal/query-executor.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit 6e303c0
authored
**⚠️ This API is released as preview.**
This configuration property enables the cancellation of ongoing queries which was previous not possible when using `Driver.executeQuery`.
The cancellation is done by closing the session used internally by the driver when execute the query. This means the cancellation is not safe and transaction might be commit apart of the execution being aborted. The cancellation might also triggers errors on the `Driver.executeQuery` execution.
Example:
```javascript
const abortController = new AbortController()
// Some event which cancels the query
process.on('SIGINT', () => abortController.abort() )
const result = await driver.executeQuery(query, params, {
database: 'neo4j',
signal: abortController.signal
})
```
**⚠️ This API is released as preview.**
1 parent 75d3040 commit 6e303c0Copy full SHA for 6e303c0
File tree
Expand file treeCollapse file tree
6 files changed
+215
-4
lines changedFilter options
- packages
- core
- src
- internal
- test
- internal
- neo4j-driver-deno/lib/core
- internal
Expand file treeCollapse file tree
6 files changed
+215
-4
lines changedpackages/core/src/driver.ts
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts+20-1Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
| 361 | + | |
361 | 362 |
| |
362 | 363 |
| |
363 | 364 |
| |
| |||
429 | 430 |
| |
430 | 431 |
| |
431 | 432 |
| |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
432 | 450 |
| |
433 | 451 |
| |
434 | 452 |
| |
| |||
595 | 613 |
| |
596 | 614 |
| |
597 | 615 |
| |
598 |
| - | |
| 616 | + | |
| 617 | + | |
599 | 618 |
| |
600 | 619 |
| |
601 | 620 |
| |
|
packages/core/src/internal/query-executor.ts
Copy file name to clipboardExpand all lines: packages/core/src/internal/query-executor.ts+29Lines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 |
| |
53 | 60 |
| |
54 | 61 |
| |
| |||
62 | 69 |
| |
63 | 70 |
| |
64 | 71 |
| |
| 72 | + | |
65 | 73 |
| |
66 | 74 |
| |
67 | 75 |
| |
68 | 76 |
| |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + |
packages/core/test/driver.test.ts
Copy file name to clipboardExpand all lines: packages/core/test/driver.test.ts+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
473 | 473 |
| |
474 | 474 |
| |
475 | 475 |
| |
| 476 | + | |
| 477 | + | |
476 | 478 |
| |
477 | 479 |
| |
478 | 480 |
| |
| |||
488 | 490 |
| |
489 | 491 |
| |
490 | 492 |
| |
491 |
| - | |
| 493 | + | |
| 494 | + | |
492 | 495 |
| |
493 | 496 |
| |
494 | 497 |
| |
|
packages/core/test/internal/query-executor.test.ts
Copy file name to clipboardExpand all lines: packages/core/test/internal/query-executor.test.ts+113-1Lines changed: 113 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
| 37 | + | |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
| |||
41 | 43 |
| |
42 | 44 |
| |
43 | 45 |
| |
44 |
| - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 |
| |
46 | 51 |
| |
47 | 52 |
| |
| |||
208 | 213 |
| |
209 | 214 |
| |
210 | 215 |
| |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
211 | 266 |
| |
212 | 267 |
| |
213 | 268 |
| |
| |||
364 | 419 |
| |
365 | 420 |
| |
366 | 421 |
| |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
367 | 472 |
| |
368 | 473 |
| |
369 | 474 |
| |
| |||
455 | 560 |
| |
456 | 561 |
| |
457 | 562 |
| |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + |
packages/neo4j-driver-deno/lib/core/driver.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/driver.ts+20-1Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
| 361 | + | |
361 | 362 |
| |
362 | 363 |
| |
363 | 364 |
| |
| |||
429 | 430 |
| |
430 | 431 |
| |
431 | 432 |
| |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
432 | 450 |
| |
433 | 451 |
| |
434 | 452 |
| |
| |||
595 | 613 |
| |
596 | 614 |
| |
597 | 615 |
| |
598 |
| - | |
| 616 | + | |
| 617 | + | |
599 | 618 |
| |
600 | 619 |
| |
601 | 620 |
| |
|
packages/neo4j-driver-deno/lib/core/internal/query-executor.ts
Copy file name to clipboardExpand all lines: packages/neo4j-driver-deno/lib/core/internal/query-executor.ts+29Lines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 |
| |
53 | 60 |
| |
54 | 61 |
| |
| |||
62 | 69 |
| |
63 | 70 |
| |
64 | 71 |
| |
| 72 | + | |
65 | 73 |
| |
66 | 74 |
| |
67 | 75 |
| |
68 | 76 |
| |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + |
You can’t perform that action at this time.
0 commit comments