MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getNodesByIds

Method getNodesByIds

src/index.ts:2453–2455  ·  view source on GitHub ↗

* Get many nodes by id in ONE round-trip (LRU-cache aware). * * The batch form of getNode. Anything resolving a list of edges to * their endpoints — a caller list, a callee rail, an impact set — must use * this rather than a `getNode` per edge: a symbol with 500 callers is 500

(ids: readonly string[])

Source from the content-addressed store, hash-verified

2451 * queries otherwise. Ids that name nothing are simply absent from the map.
2452 */
2453 getNodesByIds(ids: readonly string[]): Map<string, Node> {
2454 return this.queries.getNodesByIds(ids);
2455 }
2456
2457 /**
2458 * Every symbol carrying an exact qualified name.

Callers 2

db-perf.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected