The SessionConfig type exposes the following members.
The initial bookmarks to be used by the constructed session. The first transaction (either auto-commit or explicit) will ensure that the executing server is at least up to date to the point identified by the latest of the provided initial bookmarks. The bookmarks can be obtained from LastBookmark (and corresponding properties in other types of sessions, i.e. IRxSession or ISession.
The database that the constructed session will connect to.
When used against servers supporting multi-databases, it is recommended that this value to be set explicitly either through WithDatabase(String) method. If not, then the session will connect to the default database configured on the server side. When used against servers that don't support multi-databases, this property should be left unset.
The type of access required by the constructed session. This is used to route the requests originating from this session instance to the correct server in a clustered environment.
The default access mode set is overriden when transaction functions (i.e. ReadTransactionAsyncT(FuncIAsyncTransaction, TaskT) and WriteTransactionAsyncT(FuncIAsyncTransaction, TaskT) is used (with corresponding access modes derived from invoked method name).
The default fetch size. Since Bolt v4 (Neo4j 4.0+), the query running result (records) are pulled from server in batches. This fetch size defines how many records to pull in each batch. Use Infinite to disable batching and always pull all records in one batch instead.