Skip to content

GetQuery

Source: src/AWS/NeptuneGraph/GetQuery.ts

Runtime binding for the GetQuery operation (IAM action neptune-graph:GetQueryStatus), scoped to one Graph.

Retrieves the status of a query running on the bound graph (IAM action neptune-graph:GetQueryStatus). Provide the implementation with Effect.provide(AWS.NeptuneGraph.GetQueryHttp).

const getQuery = yield* NeptuneGraph.GetQuery(graph);
const status = yield* getQuery({ queryId });
// status.state → "RUNNING" | "WAITING" | "CANCELLING"