Typescript HTTP Driver
Connection
TransactionOptions
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
TypeDBHttpDriver
TypeDBHttpDriver
new TypeDBHttpDriver(params: DriverParams): TypeDBHttpDriver
| Name | Description | Type |
|---|---|---|
|
|
TypeDBHttpDriver
analyze
analyze( transactionId: string, query: string, analyzeOptions?: AnalyzeOptions, ): Promise<ApiResponse<AnalyzeResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
Promise<ApiResponse<AnalyzeResponse>>
closeTransaction
closeTransaction(transactionId: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
commitTransaction
commitTransaction(transactionId: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
createDatabase
createDatabase(name: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
createUser
createUser(username: string, password: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
Promise<ApiResponse>
deleteDatabase
deleteDatabase(name: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
deleteUser
deleteUser(username: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
getDatabase
getDatabase(name: string): Promise<ApiResponse<Database>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<Database>>
getDatabaseSchema
getDatabaseSchema(name: string): Promise<ApiResponse<string>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<string>>
getDatabaseTypeSchema
getDatabaseTypeSchema(name: string): Promise<ApiResponse<string>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<string>>
getDatabases
getDatabases(): Promise<ApiResponse<DatabasesListResponse>>
Promise<ApiResponse<DatabasesListResponse>>
getUser
getUser(username: string): Promise<ApiResponse<User>>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse<User>>
getUsers
getUsers(): Promise<ApiResponse<UsersListResponse>>
Promise<ApiResponse<UsersListResponse>>
oneShotQuery
oneShotQuery( query: string, commit: boolean, databaseName: string, transactionType: TransactionType, transactionOptions?: TransactionOptions, queryOptions?: QueryOptions, ): Promise<ApiResponse<QueryResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Promise<ApiResponse<QueryResponse>>
openTransaction
openTransaction( databaseName: string, transactionType: TransactionType, transactionOptions?: TransactionOptions, ): Promise<ApiResponse<TransactionOpenResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
Promise<ApiResponse<TransactionOpenResponse>>
query
query( transactionId: string, query: string, queryOptions?: QueryOptions, ): Promise<ApiResponse<QueryResponse>>
| Name | Description | Type |
|---|---|---|
|
|
|
|
|
|
|
|
Promise<ApiResponse<QueryResponse>>
rollbackTransaction
rollbackTransaction(transactionId: string): Promise<ApiResponse>
| Name | Description | Type |
|---|---|---|
|
|
Promise<ApiResponse>
Static Functions
isBasicParams
isBasicParams(params: DriverParams): params is DriverParamsBasic
| Name | Description | Type |
|---|---|---|
|
|
params is DriverParamsBasic
Response
ConceptDocumentsQueryResponse
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConceptRowsQueryResponse
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OkQueryResponse
| Name | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Static Functions
isApiError
isApiError(err: any): err is ApiError
| Name | Description | Type |
|---|---|---|
|
|
err is ApiError
Concept
Query Structure
Query Constraints
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintAny.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintIsa.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintIsaExact.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintHas.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintLinks.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintSub.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintSubExact.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintOwns.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintExpression.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintFunction.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintComparison.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintIs.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintIid.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintKind.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintValue.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintLabel.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintPlays.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintRelates.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryConstraintSpan.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryOptions.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryResponse.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryResponseBase.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryStructure.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryType.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryVariableInfo.adoc[]
Query Vertices
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryVertex.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryVertexKind.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryVertexLabel.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryVertexValue.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/QueryVertexVariable.adoc[]
Unresolved include directive in modules/ROOT/partials/http-ts/api-reference.adoc - include::3.x@external-typedb-driver::partial$http-ts/query-structure/query-structureStaticFunctions.adoc[]