Skip to content

Introduce transactionConfig to Driver.executeQuery #1160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

bigmontz
Copy link
Contributor

@bigmontz bigmontz commented Nov 22, 2023

Transaction config enables the user to configure timeouts and set metadata for the transaction.

This configuration is already present in APIs such as Session.executeRead and Session.executeWrite.

Usage example:

const { records } = await driver.executeQuery(myQuery, myParams, {
    database: 'neo4j',
    transactionConfig: {
        timeout: 3000,
        metadata: { key: 'value' }
    }
})

Transaction config enables the user configure timeouts and set
transaction metadata to the transaction.

This configuration is already present in APIs such as
`Session.executeRead` and `Session.executeWrite`.

Usage example:

```typescript
const { records } = await driver.executeQuery(myQuery, myParams, {
    database: 'neo4j',
    transactionConfig: {
        timeout: 3000,
        metadata: { key: 'value' }
    }
})
```
Copy link
Member

@robsdedude robsdedude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎀

@bigmontz bigmontz merged commit 04e41a3 into neo4j:5.0 Nov 22, 2023
@bigmontz bigmontz deleted the 5.15-add-transaction-config-to-execute-query branch November 22, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants