CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 15:51:09 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/"2af8a8cbb4eed61ecd7314aeca992187"
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=LVrG1lmTdzrPcn16U5StjtGw7PhjNC9FiX37vL%2FuInxq3lHQwf%2FtFgF5XB3%2Bb%2FyqYtBt0DfISDNG%2FnGFuAjJIsuvKXz84E2mp4Tl8zbXd1Jr7QT%2FnC136A7nnbcM3Fr4i%2Bi66nBKXqDUVWUYcZGjmTNTEpyLfqbeMWUdBVcYtqCOEqaS63kFSQ0rU3zSBEzXbBhiy1aBjxsgMpWZfQQT6DuZS6zTz28wbTLKfDEjZWGiLlPBKLmjgReZ%2FBIhSX9GUZNPuQlGTgUBvM%2BrN033xg%3D%3D--ZwNll8%2F2KmsMCKbg--JB6sD9G8WpoQ5N1%2BapiSTQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1983226646.1753285868; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 15:51:08 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 15:51:08 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E484:2DEF93:E42C5B:10D88D8:688104EC
Database Notification Improvements (#1064) · neo4j/neo4j-javascript-driver@6e903e7 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-util.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v1.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v3.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x0.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x1.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x3.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x4.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v5x0.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit 6e903e7
authored
Database Notification Improvements (#1064)
Cypher are improving the notifications that are produced by query execution by making it configurable what level of notifications can be returned and adding additional information to notifications.
Usage:
```typescript
import neo4j from 'neo4j-driver'
// Configuring at the driver level
const driver = neo4j.driver(<ADDRESS>, <TOKEN>, {
notificationFilter: {
minimumSeverityLevel: neo4j.notificationFilterMinimumSeverityLevel.WARNING // or 'WARNING'
}
})
// Configuring a the session level
const session = driver.session({
database: 'neo4j',
notificationFilter: {
minimumSeverityLevel: neo4j.notificationFilterMinimumSeverityLevel.INFORMATION // or 'INFORMATION',
disabledCategories: [
neo4j.notificationFilterDisabledCategory.HINT, // or 'HINT',
neo4j.notificationFilterDisabledCategory.GENERIC // or 'GENERIC'
]
}
})
// Configuring using plain string.
const session = driver.session({
database: 'neo4j',
notificationFilter: {
minimumSeverityLevel: 'INFORMATION',
disabledCategories: [
'HINT',
'GENERIC'
]
}
})
const { summary } = await session.executeWrite(tx => tx.run(<QUERY>, <PARAMS>))
// Reading notifications
for (const notification of summary.notifications) {
switch(notification.severityLevel) {
case neo4j.notificationSeverityLevel.INFORMATION: // or simply 'INFORMATION'
console.info(`[${notification.category}] ${notification.title} - ${notification.description}`)
break
case neo4j.notificationSeverityLevel.WARNING: // or simply 'WARNING'
console.warn(`[${notification.category}]${notification.title} - ${notification.description}`)
break
case neo4j.notificationSeverityLevel.UNKNOWN: // or simply 'UNKNOWN'
default:
// the raw info came from the server could be found at notification.rawSeverityLevel
console.log(`[${notification.category}]${notification.title} - ${notification.description}`)
break
}
}
```
More details in the methods documentation and type signature.1 parent c3f52c4 commit 6e903e7Copy full SHA for 6e903e7
File tree
Expand file treeCollapse file tree
80 files changed
+3877
-166
lines changedFilter options
- packages
- bolt-connection
- src
- bolt
- connection
- test
- bolt
- __snapshots__
- behaviour
- connection
- core
- src
- internal
- test
- utils
- neo4j-driver-deno/lib
- bolt-connection
- bolt
- connection
- core
- internal
- neo4j-driver-lite
- src
- test/unit
- neo4j-driver
- src
- test/types
- types
- testkit-backend/src
- feature
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
80 files changed
+3877
-166
lines changedpackages/bolt-connection/src/bolt/bolt-protocol-util.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-util.js+22-2Lines changed: 22 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + |
packages/bolt-connection/src/bolt/bolt-protocol-v1.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v1.js+14-2Lines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
169 | 170 |
| |
170 | 171 |
| |
171 | 172 |
| |
| 173 | + | |
172 | 174 |
| |
173 | 175 |
| |
174 | 176 |
| |
175 | 177 |
| |
176 |
| - | |
| 178 | + | |
177 | 179 |
| |
178 | 180 |
| |
179 | 181 |
| |
180 | 182 |
| |
181 | 183 |
| |
| 184 | + | |
| 185 | + | |
| 186 | + | |
182 | 187 |
| |
183 | 188 |
| |
184 | 189 |
| |
| |||
254 | 259 |
| |
255 | 260 |
| |
256 | 261 |
| |
| 262 | + | |
257 | 263 |
| |
258 | 264 |
| |
259 | 265 |
| |
| |||
266 | 272 |
| |
267 | 273 |
| |
268 | 274 |
| |
| 275 | + | |
269 | 276 |
| |
270 | 277 |
| |
271 | 278 |
| |
| |||
280 | 287 |
| |
281 | 288 |
| |
282 | 289 |
| |
| 290 | + | |
283 | 291 |
| |
284 | 292 |
| |
285 | 293 |
| |
| |||
362 | 370 |
| |
363 | 371 |
| |
364 | 372 |
| |
| 373 | + | |
365 | 374 |
| |
366 | 375 |
| |
367 | 376 |
| |
| |||
381 | 390 |
| |
382 | 391 |
| |
383 | 392 |
| |
| 393 | + | |
384 | 394 |
| |
385 | 395 |
| |
386 | 396 |
| |
| |||
410 | 420 |
| |
411 | 421 |
| |
412 | 422 |
| |
| 423 | + | |
| 424 | + | |
413 | 425 |
| |
414 | 426 |
| |
415 | 427 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v3.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v3.js+11-2Lines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 |
| |
79 | 82 |
| |
80 | 83 |
| |
| |||
89 | 92 |
| |
90 | 93 |
| |
91 | 94 |
| |
| 95 | + | |
92 | 96 |
| |
93 | 97 |
| |
94 | 98 |
| |
| |||
108 | 112 |
| |
109 | 113 |
| |
110 | 114 |
| |
| 115 | + | |
| 116 | + | |
111 | 117 |
| |
112 | 118 |
| |
113 | 119 |
| |
| |||
166 | 172 |
| |
167 | 173 |
| |
168 | 174 |
| |
| 175 | + | |
169 | 176 |
| |
170 | 177 |
| |
171 | 178 |
| |
| |||
194 | 201 |
| |
195 | 202 |
| |
196 | 203 |
| |
| 204 | + | |
| 205 | + | |
197 | 206 |
| |
198 | 207 |
| |
199 | 208 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v4x0.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x0.js+7-1Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| |||
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
| 77 | + | |
| 78 | + | |
76 | 79 |
| |
77 | 80 |
| |
78 | 81 |
| |
| |||
91 | 94 |
| |
92 | 95 |
| |
93 | 96 |
| |
| 97 | + | |
94 | 98 |
| |
95 | 99 |
| |
96 | 100 |
| |
| |||
123 | 127 |
| |
124 | 128 |
| |
125 | 129 |
| |
| 130 | + | |
| 131 | + | |
126 | 132 |
| |
127 | 133 |
| |
128 | 134 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v4x1.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x1.js+5-1Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
75 |
| - | |
| 76 | + | |
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
80 | 81 |
| |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 |
| |
82 | 86 |
| |
83 | 87 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v4x3.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x3.js+11-6Lines changed: 11 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
88 | 90 |
| |
89 | 91 |
| |
90 |
| - | |
| 92 | + | |
91 | 93 |
| |
92 | 94 |
| |
93 | 95 |
| |
| |||
98 | 100 |
| |
99 | 101 |
| |
100 | 102 |
| |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 |
| |
102 | 107 |
| |
103 | 108 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v4x4.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v4x4.js+9Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
| |||
87 | 88 |
| |
88 | 89 |
| |
89 | 90 |
| |
| 91 | + | |
90 | 92 |
| |
91 | 93 |
| |
92 | 94 |
| |
| |||
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 |
| |
120 | 125 |
| |
121 | 126 |
| |
| |||
142 | 147 |
| |
143 | 148 |
| |
144 | 149 |
| |
| 150 | + | |
145 | 151 |
| |
146 | 152 |
| |
147 | 153 |
| |
| |||
156 | 162 |
| |
157 | 163 |
| |
158 | 164 |
| |
| 165 | + | |
| 166 | + | |
| 167 | + | |
159 | 168 |
| |
160 | 169 |
| |
161 | 170 |
| |
|
packages/bolt-connection/src/bolt/bolt-protocol-v5x0.js
Copy file name to clipboardExpand all lines: packages/bolt-connection/src/bolt/bolt-protocol-v5x0.js+11-6Lines changed: 11 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 |
| |
53 | 55 |
| |
54 |
| - | |
| 56 | + | |
55 | 57 |
| |
56 | 58 |
| |
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 |
| |
61 | 66 |
| |
62 | 67 |
| |
|
You can’t perform that action at this time.
0 commit comments