From f6fde053cb0c5ac8a326621667f28a2f8a468ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Fri, 4 Aug 2023 10:13:25 +0200 Subject: [PATCH] Support entities with `key` property --- bin/initialize-dev-db.mjs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/bin/initialize-dev-db.mjs b/bin/initialize-dev-db.mjs index 78f8556..ecc7bc4 100755 --- a/bin/initialize-dev-db.mjs +++ b/bin/initialize-dev-db.mjs @@ -278,6 +278,27 @@ await call("commit", { ], }); +await call("commit", { + mode: "NON_TRANSACTIONAL", + mutations: [ + { + insert: { + key: { + partitionId: { + projectId: projectID, + }, + path: [{ kind: "KindWithKeyProperty", name: "Entity" }], + }, + properties: { + key: { + integerValue: 14, + }, + }, + }, + }, + ], +}); + await call("commit", { mode: "NON_TRANSACTIONAL", mutations: [