Driver
Extends:
neo4j-driver-core~CoreDriver → Driver
Method Summary
Public Methods | ||
public |
rxSession(config: SessionConfig): RxSession Acquire a reactive session to communicate with the database. |
Public Methods
public rxSession(config: SessionConfig): RxSession source
Acquire a reactive session to communicate with the database. The session will borrow connections from the underlying connection pool as required and should be considered lightweight and disposable.
This comes with some responsibility - make sure you always call close when you are done using a session, and likewise, make sure you don't close your session before you are done using it. Once it is closed, the underlying connection will be released to the connection pool and made available for others to use.
Params:
Name | Type | Attribute | Description |
config | SessionConfig |