From 8a49a04cd1b56f26b5aa92625b6a14d889878139 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 28 Oct 2020 19:37:53 +0000 Subject: [PATCH] Fix bad schema type when fetching bindable properties --- .../builder/src/builderStore/fetchBindableProperties.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/builderStore/fetchBindableProperties.js b/packages/builder/src/builderStore/fetchBindableProperties.js index 64755606c3..9a193112fb 100644 --- a/packages/builder/src/builderStore/fetchBindableProperties.js +++ b/packages/builder/src/builderStore/fetchBindableProperties.js @@ -106,11 +106,15 @@ const contextToBindables = (tables, walkResult) => context => { } } + const stringType = { type: "string" } return ( Object.entries(schema) .map(newBindable) // add _id and _rev fields - not part of schema, but always valid - .concat([newBindable(["_id", "string"]), newBindable(["_rev", "string"])]) + .concat([ + newBindable(["_id", stringType]), + newBindable(["_rev", stringType]), + ]) ) }