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

Method constructor

packages/y-graph-storage/src/YGraph.ts:30–39  ·  view source on GitHub ↗
(config: YGraphConfig<TSchema>)

Source from the content-addressed store, hash-verified

28 #subscribers: Set<Observer<YGraphChange>> = new Set();
29
30 public constructor(config: YGraphConfig<TSchema>) {
31 const storage = new YGraphStorage(config.doc, {
32 schema: config.schema,
33 });
34 super({
35 schema: config.schema,
36 storage,
37 });
38 this.#doc = config.doc;
39 }
40
41 /**
42 * The Yjs document that the graph is stored in.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected