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
If this option is explicitly set to `false`, the _url_ is expected to
468
-
provide the database path and the _useDatabase_ method can not be used to
469
-
switch databases.
465
+
If this option is explicitly set to `true`, the _url_ will be treated as the
466
+
absolute database path. This is an escape hatch to allow using arangojs with
467
+
database APIs exposed with a reverse proxy and makes it impossible to switch
468
+
databases with _useDatabase_ or using _acquireHostList_.
470
469
471
470
* **arangoVersion**: `number` (Default:`30000`)
472
471
@@ -542,13 +541,17 @@ Updates the URL list by requesting a list of all coordinators in the cluster and
542
541
543
542
For long-running processes communicating with an ArangoDB cluster it is recommended to run this method repeatedly (e.g. once per hour) to make sure new coordinators are picked up correctly and can be used for fail-over or load balancing.
544
543
544
+
**Note**: This method can not be used when the arangojs instance was created with `isAbsolute:true`.
545
+
545
546
#### database.useDatabase
546
547
547
548
`database.useDatabase(databaseName):this`
548
549
549
550
Updates the _Database_ instance and its connection string to use the given
550
551
_databaseName_, then returns itself.
551
552
553
+
**Note**: This method can not be used when the arangojs instance was created with `isAbsolute:true`.
0 commit comments