diff --git a/packages/core/src/storage/graphStore/types.ts b/packages/core/src/storage/graphStore/types.ts new file mode 100644 index 0000000000..64294a6a23 --- /dev/null +++ b/packages/core/src/storage/graphStore/types.ts @@ -0,0 +1,12 @@ +import { GenericFileSystem } from "../FileSystem"; + +export interface GraphStore { + client(): any; + get(subj: string): Promise; + // def get_rel_map(self, subjs: Optional[List[str]] = None, depth: int = 2, limit: int = 30) -> Dict[str, List[List[str]]]: + upsert_triplet(subj: string, rel: String, obj: String): Promise; + delete(refDocId: string, deleteKwargs?: any): Promise; + persist(persistPath: string, fs?: GenericFileSystem): Promise; + get_schema(refresh?: boolean): Promise; + query(query: string, param_map?: Map): Promise; +}