CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 21:50:40 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/"c989e3e733814c3beb3ec18fa2626ef4"
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=lbTUSkFOoHOtYIQFK8LdNYVsA6GORem%2B2kqFghYg%2B6aGEBHrWKJ6jvwEVLjPX6XqbJX7LBfUaqQUFiqGbTcpGnAijONU41vleFow27VbpfZxYs0FwrY3sT5U8dNgsSrrg3jFmJqA%2BCAY0nrbEiJDm5imnthwcsPs3jmx0VzL%2Fa51tURmzJ7unG0D8ONu8MkOGTOS6SpuSsuWk4rNim%2Fc3Tm25L%2FcqEgQQDri2dCZgsQ80sJYHUwfmRlcgonQ2LOH0qxiQ%2BxEF0bzfrQncAdHNw%3D%3D--IsPAs3vSVGfFf11i--%2F4HMfsTEhQYW8MrAFC1MPg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1144675833.1753221040; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 21:50:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 21:50:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A830:121670:1690DE:1DEC21:688007B0
Introduce `Driver.executeQuery` (#1006) · neo4j/neo4j-javascript-driver@d332448 · GitHub
Copy file name to clipboardExpand all lines: packages/core/src/connection-provider.ts
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit d332448
authored
Introduce
This method gives the user a simple interface and obvious place to start with the driver. Behind this method the full retry mechanism will be present. The results are eagerly returned and in memory. With this, we have removed the need for the user to have knowledge of transactions, routing control, streaming of results and cursor lifetimes, and any of the more complex concepts that are exposed when using the session object.
Running a simple write query:
```typescript
const { keys, records, summary } = await driver.executeQuery(
'CREATE (p:Person{ name: $name }) RETURN p',
{ name: 'Person1'}
)
```
Running a read query:
```typescript
const { keys, records, summary } = await driver.executeQuery(
'MATCH (p:Person{ name: $name }) RETURN p',
{ name: 'Person1'},
{ routing: neo4j.routing.READERS}
)
```
Running a read query and transforming the result:
```typescript
const person1 = await driver.executeQuery(
'MATCH (p:Person{ name: $name }) RETURN p',
{ name: 'Person1'},
{
routing: neo4j.routing.READERS,
resultTransformer: neo4j.resultTransformers.mappedResultTransformer({
map(record) {
return record.get('p')
},
collect(personArray) {
return personArray[0]
}
})
}
)
```Driver.executeQuery
(#1006)1 parent 4d78393 commit d332448Copy full SHA for d332448
File tree
Expand file treeCollapse file tree
28 files changed
+2188
-129
lines changedFilter options
- packages
- core
- src
- internal
- test
- internal
- utils
- neo4j-driver-deno/lib
- core
- internal
- neo4j-driver-lite
- src
- test/unit
- neo4j-driver
- src
- test/types
- types
- testkit-backend/src
- feature
Expand file treeCollapse file tree
28 files changed
+2188
-129
lines changedpackages/core/src/connection-provider.ts
Copy file name to clipboardExpand all lines: packages/core/src/connection-provider.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
|
packages/core/src/driver.ts
Copy file name to clipboardExpand all lines: packages/core/src/driver.ts+210-7Lines changed: 210 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
| 41 | + | |
41 | 42 |
| |
42 | 43 |
| |
43 |
| - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 |
| |
45 | 50 |
| |
46 | 51 |
| |
| |||
91 | 96 |
| |
92 | 97 |
| |
93 | 98 |
| |
| 99 | + | |
| 100 | + | |
94 | 101 |
| |
95 | 102 |
| |
96 | 103 |
| |
| |||
231 | 238 |
| |
232 | 239 |
| |
233 | 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 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
234 | 323 |
| |
235 | 324 |
| |
236 | 325 |
| |
| |||
249 | 338 |
| |
250 | 339 |
| |
251 | 340 |
| |
| 341 | + | |
| 342 | + | |
252 | 343 |
| |
253 | 344 |
| |
254 | 345 |
| |
255 | 346 |
| |
256 | 347 |
| |
257 | 348 |
| |
258 | 349 |
| |
259 |
| - | |
| 350 | + | |
260 | 351 |
| |
261 | 352 |
| |
262 | 353 |
| |
263 | 354 |
| |
264 | 355 |
| |
265 |
| - | |
266 |
| - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
267 | 359 |
| |
268 | 360 |
| |
269 | 361 |
| |
| |||
275 | 367 |
| |
276 | 368 |
| |
277 | 369 |
| |
278 |
| - | |
| 370 | + | |
279 | 371 |
| |
| 372 | + | |
| 373 | + | |
280 | 374 |
| |
281 | 375 |
| |
282 | 376 |
| |
| |||
288 | 382 |
| |
289 | 383 |
| |
290 | 384 |
| |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 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 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
291 | 492 |
| |
292 | 493 |
| |
293 | 494 |
| |
| |||
456 | 657 |
| |
457 | 658 |
| |
458 | 659 |
| |
| 660 | + | |
459 | 661 |
| |
460 | 662 |
| |
461 | 663 |
| |
| |||
627 | 829 |
| |
628 | 830 |
| |
629 | 831 |
| |
630 |
| - | |
| 832 | + | |
| 833 | + | |
631 | 834 |
|
+15-4Lines changed: 15 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| |||
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
79 |
| - | |
| 80 | + | |
80 | 81 |
| |
81 | 82 |
| |
| 83 | + | |
82 | 84 |
| |
83 | 85 |
| |
84 | 86 |
| |
| |||
139 | 141 |
| |
140 | 142 |
| |
141 | 143 |
| |
| 144 | + | |
142 | 145 |
| |
143 | 146 |
| |
144 | 147 |
| |
| |||
149 | 152 |
| |
150 | 153 |
| |
151 | 154 |
| |
152 |
| - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
153 | 158 |
| |
154 | 159 |
| |
155 | 160 |
| |
| |||
198 | 203 |
| |
199 | 204 |
| |
200 | 205 |
| |
| 206 | + | |
201 | 207 |
| |
202 | 208 |
| |
203 | 209 |
| |
| |||
209 | 215 |
| |
210 | 216 |
| |
211 | 217 |
| |
212 |
| - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
213 | 221 |
| |
214 | 222 |
| |
215 | 223 |
| |
| |||
221 | 229 |
| |
222 | 230 |
| |
223 | 231 |
| |
224 |
| - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
225 | 236 |
| |
226 | 237 |
| |
227 | 238 |
|
You can’t perform that action at this time.
0 commit comments