Mercurial > code > home > repos > streamed-graph
diff src/MultiStore.ts @ 144:379c4294dd0f
patch api
author | drewp@bigasterisk.com |
---|---|
date | Mon, 08 May 2023 13:31:40 -0700 |
parents | 27fad20dc101 |
children | 9347277e8311 |
line wrap: on
line diff
--- a/src/MultiStore.ts Mon May 08 13:29:48 2023 -0700 +++ b/src/MultiStore.ts Mon May 08 13:31:40 2023 -0700 @@ -10,7 +10,7 @@ } from "n3"; import * as RDF from "rdf-js"; import { SubEvent } from "sub-events"; -import { Patch } from "./Patch"; +import { Patch, PatchDirection } from "./Patch"; import { SourceGraph } from "./SourceGraph"; // queries over multiple Store objects @@ -28,7 +28,7 @@ newStore(s: SourceGraph) { this.stores.push(s.store); - const p = new Patch(); // todo + const p = new Patch(PatchDirection.ADD); // todo s.sourceGraphChanged.subscribe((p) => { this.sourceGraphDataChanged(p); // todo });