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

Function fileNodeForPath

graph-ui/src/provider/cypher.ts:339–342  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

337 * mit, und genau deshalb ist es der zweite Weg und nicht der erste.
338 */
339export function fileNodeForPath(filePath: string): string {
340 return `MATCH (n:${FILE_LABEL}) WHERE n.${NODE_PROPS.filePath} = "${escapeLiteral(filePath)}"`
341 + ` ${ret(COLUMNS.fileNode)} LIMIT 1`;
342}
343
344/** Whether the engine has a file node for `filePath`. Distinguishes "nothing here" from "not indexed". */
345export function fileExists(filePath: string): string {

Callers 3

lookupModuleNodeFunction · 0.90
SourceEvidenceDrawerFunction · 0.90

Calls 2

escapeLiteralFunction · 0.85
retFunction · 0.85

Tested by

no test coverage detected