You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce auth config to Driver.executeQuery (#1177)
The AuthToken will be used for executing the query.
By default, the query executor will use connections authenticated with the AuthToken configured on driver creation. This new configuration allows switching user and/or authorization information for the underlying transaction's lifetime.
Example:
```javascript
const { records } = await driver.executeQuery('RETURN $abc', { abc: 'dfe' }, {
database: 'neo4j',
auth: neo4j.auth.basic('otheruser', 'sup3rDup3rS3cret')
})
```
> [!NOTE]
> This option is only available when the driver is connected to Neo4j Database servers which supports Bolt 5.1 or newer.
---------
Co-authored-by: Robsdedude <dev@rouvenbauer.de>
['config.bookmarkManager set to non-null/empty','q',{},{bookmarkManager: theBookmarkManager},extendsDefaultWith({bookmarkManager: theBookmarkManager})],
0 commit comments