Protocol + hostname, e.g. 'http://localhost' or 'https://my-cluster.i.tgcloud.io'. No trailing slash, no port.
OptionalrestREST++ port (vertex/edge/query endpoints). Default 9000.
OptionalgsqlGSQL server port (interpreted queries, schema introspection). Default 14240.
OptionalrestPath prefix in front of REST++ routes, e.g. '/restpp' on a 4.1+ unified deployment. Default ''.
Default graph name used when a call doesn't override it.
OptionalsecretGSQL secret used to mint a token via POST /requesttoken
(see README - confirmed pre-4.1 shape). Provide this, or a pre-minted
token, to authenticate REST++ (vertex/edge/query) calls.
OptionaltokenA pre-minted REST++ auth token. Skips the /requesttoken round trip in connect().
OptionaltokenRequested token lifetime in seconds, passed to /requesttoken.
OptionalusernameUsername/password used for HTTP Basic auth against GSQL-server endpoints (interpreted queries, schema introspection). TigerGraph's documented example for the interpreted-query endpoint uses Basic auth rather than the REST++ bearer token; the same credentials are reused here for schema introspection since both are GSQL-server routes.
OptionalpasswordOptionalfetchInjectable fetch implementation, primarily for tests. Defaults to globalThis.fetch.
Optionalinit: RequestInitOptionalinit: RequestInit
Connection options for
TigerGraphStore.TigerGraph traditionally splits traffic across two ports: the REST++ data-plane API (vertex/edge CRUD, installed queries - historically port 9000) and the GSQL server (schema/DDL, ad-hoc "interpreted" queries - historically port 14240). TigerGraph 4.1+ unifies external traffic behind port 14240 with
/restpp/...and/gsql/...path prefixes and makes 9000 internal-only; this store defaults to the classic two-port layout (confirmed against documented pre-4.1 REST++ endpoint shapes - see README) but every port/prefix is configurable so it can be pointed at a 4.1+ unified deployment too.