Skip to content

ResetGraph

Source: src/AWS/NeptuneGraph/ResetGraph.ts

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

Empties all data from the bound graph while keeping the graph itself (and optionally snapshotting first) — e.g. refresh a demo or staging dataset before a re-import. Provide the implementation with Effect.provide(AWS.NeptuneGraph.ResetGraphHttp).

const resetGraph = yield* NeptuneGraph.ResetGraph(graph);
yield* resetGraph({ skipSnapshot: true });