Skip to content

Graph

Source: src/AWS/NeptuneGraph/Graph.ts

An Amazon Neptune Analytics graph — a serverless, memory-optimized graph that serves openCypher queries over an IAM-authenticated HTTPS endpoint. Unlike classic Neptune, a graph with publicConnectivity: true needs no VPC plumbing at all. Provisioning takes several minutes and the graph bills per m-NCU-hour while it exists.

Mutable fields (provisionedMemory, publicConnectivity, deletionProtection) are reconciled in place; immutable fields (replicaCount, kmsKeyIdentifier, vectorSearchConfiguration) force a replacement.

const graph = yield* Graph("Knowledge", {
provisionedMemory: 16,
publicConnectivity: true,
replicaCount: 0,
deletionProtection: false,
});
const graph = yield* Graph("Embeddings", {
provisionedMemory: 16,
vectorSearchConfiguration: { dimension: 1536 },
});
const executeQuery = yield* AWS.NeptuneGraph.ExecuteQuery(graph);
const result = yield* executeQuery({
queryString: "MATCH (n) RETURN count(n) AS n",
language: "OPEN_CYPHER",
});