GraphPatternMatch
GraphPatternMatch
Section titled “GraphPatternMatch”Match patterns in the graph
Endpoint: /api/graph/graphpatternmatch
Tags: Graph
API Details
GET /api/graph/graphpatternmatch
Request
Section titled “Request”schema: z.object({ tenantId: Str({ description: "ID of the tenant" }), pattern: z.object({ nodes: z.array(z.object({ id: Str({ description: "Variable name for this node" }), type: Str({ description: "Entity type" }).optional(), properties: z.record(z.any()).optional(), })), relationships: z.array(z.object({ source: Str({ description: "Source node variable" }), target: Str({ description: "Target node variable" }), type: Str({ description: "Relationship type" }).optional(), properties: z.record(z.any()).optional(), })), }), returnVariables: z.array(Str({ description: "Variables to return" })).optional(), }),Responses
Section titled “Responses”Status Code: 200
Section titled “Status Code: 200”Returns the pattern matches
schema: z.object({ success: Bool(), matches: z.array(z.record(z.any())), count: z.number(), }),Status Code: 400
Section titled “Status Code: 400”Bad request
schema: z.object({ success: Bool(), error: Str(), }),Status Code: 401
Section titled “Status Code: 401”Unauthorized
schema: z.object({ success: Bool(), error: Str(), }),