feat: seperate createDoc and createStore (#11182)

This commit is contained in:
Saul-Mirone committed 2025-03-26 11:03:47 +00:00
1 parent d6093e1d66
commit 0a8d8e0a6b
70 files changed
+337 -312

No files matched your search

@@ -66,8 +66,8 @@ export function createStarterDocCollection() {
schema,
blobCRUD: collection.blobSync,
docCRUD: {
create: (id: string) => collection.createDoc({ id }),
get: (id: string) => collection.getDoc(id),
create: (id: string) => collection.createDoc(id).getStore({ id }),
get: (id: string) => collection.getDoc(id)?.getStore({ id }) ?? null,
delete: (id: string) => collection.removeDoc(id),
},
});