From 4d5038b3a5ae390355e2bd6524f7edc66fedc65c Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sun, 1 Sep 2024 01:23:05 +0330 Subject: [PATCH] refactor: Update demo for test schemaVer --- packages/engine/demo/collection.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/engine/demo/collection.mjs b/packages/engine/demo/collection.mjs index b8c1c369..14ff8576 100644 --- a/packages/engine/demo/collection.mjs +++ b/packages/engine/demo/collection.mjs @@ -12,10 +12,14 @@ const alwatrStore = new AlwatrStore({ }); async function quickstart() { + /** + * @type {import('@alwatr/store-engine').StoreFileId} + */ const postsCollectionId = { name: 'post', region: Region.PerUser, ownerId: 'user_123', + schemaVer: 2, }; logger.logProperty?.('collectionId', postsCollectionId); @@ -36,6 +40,8 @@ async function quickstart() { // Get a collection reference. const postsCollection = await alwatrStore.openCollection(postsCollectionId); + logger.logProperty?.('collection.schemaVer', postsCollection.schemaVer); + const post1Id = 'intro-to-alwatr-store'; const post2Id = 'intro-to-alwatr-collections';