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

Method toJSON

packages/graph/src/Traversals.ts:247–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245 }
246
247 public toJSON(): TraversalPathJSON {
248 return {
249 "@type": "TraversalPath",
250 value: this.#value,
251 labels: this.#labels,
252 parent: this.#parent instanceof TraversalPath ? this.#parent.toJSON() : undefined,
253 };
254 }
255
256 [customInspectSymbol]() {
257 return this.toString();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected