Graph
List nodes
Technical previewReturns a paginated list of nodes of one type from the patient context graph
Usage
import { ContextEngineClient } from "@clinia/context-engine-js";
// Initialize the client
const client = new ContextEngineClient({
baseUrl: process.env.CLINIA_WORKSPACE,
auth: {
clientId: process.env.CLINIA_CLIENT_ID,
clientSecret: process.env.CLINIA_CLIENT_SECRET,
},
});
// Call the API
const { data, error } = await client.graph.listNodes("<patient-id>", "extracted_fact");
// Print the response
console.log(data ?? error);The environment variables are set in Install and authenticate, for JavaScript or Python.
API reference
GET /v1/patients/{patientId}/graph/nodes/{type}/items documents the parameters, the request body and the responses.