diff --git a/packages/builder/src/components/integration/index.svelte b/packages/builder/src/components/integration/index.svelte
index 3876df5a09..3c370f9b19 100644
--- a/packages/builder/src/components/integration/index.svelte
+++ b/packages/builder/src/components/integration/index.svelte
@@ -16,11 +16,18 @@
}
+
+
+
+
+
{#if query.queryType === QueryTypes.SQL}
-
-
{:else if query.queryType === QueryTypes.JSON}
-
-{:else if query.queryType === QueryTypes.FIELDS}{/if}
+
+{:else if query.queryType === QueryTypes.FIELDS}
+
+{/if}
diff --git a/packages/builder/src/components/userInterface/BindableInput.svelte b/packages/builder/src/components/userInterface/BindableInput.svelte
index 76624abd06..b1521bee20 100644
--- a/packages/builder/src/components/userInterface/BindableInput.svelte
+++ b/packages/builder/src/components/userInterface/BindableInput.svelte
@@ -1,9 +1,13 @@
diff --git a/packages/builder/src/components/userInterface/DataBindingDrawer/index.svelte b/packages/builder/src/components/userInterface/DataBindingDrawer/index.svelte
index aaf78f20fc..023784b3f2 100644
--- a/packages/builder/src/components/userInterface/DataBindingDrawer/index.svelte
+++ b/packages/builder/src/components/userInterface/DataBindingDrawer/index.svelte
@@ -20,7 +20,7 @@
...property,
category: property.type === "instance" ? "Component" : "Table",
label: property.readableBinding,
- path: property.runtimeBinding,
+ path: property.readableBinding,
}))
function closeDatabindingDrawer() {
diff --git a/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte b/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte
index 060d8fe412..a8e7d15e93 100644
--- a/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte
+++ b/packages/builder/src/components/userInterface/EventsEditor/actions/ExecuteQuery.svelte
@@ -20,7 +20,7 @@
...property,
category: property.type === "instance" ? "Component" : "Table",
label: property.readableBinding,
- path: property.runtimeBinding,
+ path: property.readableBinding,
}))
$: query =
diff --git a/packages/builder/src/components/userInterface/TableViewSelect.svelte b/packages/builder/src/components/userInterface/TableViewSelect.svelte
index 715a2f200e..42ac6e7c7e 100644
--- a/packages/builder/src/components/userInterface/TableViewSelect.svelte
+++ b/packages/builder/src/components/userInterface/TableViewSelect.svelte
@@ -63,11 +63,9 @@
...property,
category: property.type === "instance" ? "Component" : "Table",
label: property.readableBinding,
- path: property.runtimeBinding,
+ path: property.readableBinding,
}))
- $: console.log("selected", value)
-
$: links = bindableProperties
.filter(x => x.fieldSchema?.type === "link")
.map(property => {
diff --git a/packages/server/src/api/routes/query.js b/packages/server/src/api/routes/query.js
index 35f1f31f12..22d308bac9 100644
--- a/packages/server/src/api/routes/query.js
+++ b/packages/server/src/api/routes/query.js
@@ -39,13 +39,12 @@ function generateQueryValidation() {
function generateQueryPreviewValidation() {
// prettier-ignore
return joiValidator.body(Joi.object({
- query: Joi.string().required(),
+ query: Joi.string(),
datasourceId: Joi.string().required(),
parameters: Joi.object({}).required().unknown(true)
}))
}
-// TODO: sort out auth so apps have the right permissions
router
.get("/api/queries", authorized(BUILDER), queryController.fetch)
.post(