changeset 144:379c4294dd0f

patch api
author drewp@bigasterisk.com
date Mon, 08 May 2023 13:31:40 -0700
parents 5adf79d4a9f4
children 3774ce9317a1
files src/MultiStore.ts
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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
     });