MCPcopy Create free account
hub / github.com/codemix/graph / valueKey

Method valueKey

packages/graph/src/Steps.ts:3183–3195  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

3181 ): unknown {
3182 // Helper to create a string key for deduplication
3183 const valueKey = (value: unknown): string => {
3184 if (value === null || value === undefined) return "null";
3185 if (value instanceof Vertex) return `v:${value.id}`;
3186 if (value instanceof Edge) return `e:${value.id}`;
3187 if (typeof value === "object") {
3188 try {
3189 return JSON.stringify(value);
3190 } catch {
3191 return String(value);
3192 }
3193 }
3194 return String(value);
3195 };
3196
3197 switch (aggregate) {
3198 case "COUNT": {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected