(value: unknown)
| 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": { |
nothing calls this directly
no outgoing calls
no test coverage detected