MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / queryText

Function queryText

graph-ui/src/architecture/route-graph-source.ts:30–38  ·  view source on GitHub ↗
(query: RouteQuery)

Source from the content-addressed store, hash-verified

28const ROW_CAP = 300;
29
30function queryText(query: RouteQuery): string {
31 // Only fixed schema labels enter Cypher; project is a separate RPC argument.
32 return `MATCH (s:${query.source})-[r:${query.relations}]->(t:${query.target}) RETURN `
33 + 'id(s) AS source, s.qualified_name AS source_qn, s.file_path AS source_file, '
34 + 's.start_line AS source_line, s.name AS source_name, id(t) AS target, '
35 + 't.qualified_name AS target_qn, t.file_path AS target_file, t.start_line AS target_line, '
36 + 't.name AS target_name, id(r) AS edge_id, type(r) AS edge_type, '
37 + `r.url_path AS route_path, r.via AS via LIMIT ${ROW_CAP + 1}`;
38}
39
40const clean = (value: string | undefined) => value && value !== '{}' && value !== '-' ? value : undefined;
41function integer(value: string | undefined): number | undefined {

Callers 1

loadRouteGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected