Rename flow to pipeline
This commit is contained in:
parent
cd5930450e
commit
34a1d5e36b
|
@ -16,7 +16,6 @@
|
||||||
SQL: "sql",
|
SQL: "sql",
|
||||||
JSON: "json",
|
JSON: "json",
|
||||||
FIELDS: "fields",
|
FIELDS: "fields",
|
||||||
FLOW: "flow",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export let query
|
export let query
|
||||||
|
@ -65,7 +64,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$: shouldDisplayJsonBox =
|
$: shouldDisplayJsonBox =
|
||||||
schema.type === QueryTypes.JSON && query.fields.extra?.actionType !== "flow"
|
schema.type === QueryTypes.JSON &&
|
||||||
|
query.fields.extra?.actionType !== "pipeline"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if schema}
|
{#if schema}
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
<Input thin outline disabled value={urlDisplay} />
|
<Input thin outline disabled value={urlDisplay} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if query.fields.extra?.actionType === "flow"}
|
{:else if query.fields.extra?.actionType === "pipeline"}
|
||||||
<br />
|
<br />
|
||||||
{#if (query.fields.steps?.length ?? 0) === 0}
|
{#if (query.fields.steps?.length ?? 0) === 0}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
|
@ -290,7 +290,7 @@ const SCHEMA: Integration = {
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
actionType: {
|
actionType: {
|
||||||
displayName: "Action Type",
|
displayName: "Query Type",
|
||||||
type: DatasourceFieldType.LIST,
|
type: DatasourceFieldType.LIST,
|
||||||
required: true,
|
required: true,
|
||||||
data: {
|
data: {
|
||||||
|
@ -298,7 +298,7 @@ const SCHEMA: Integration = {
|
||||||
create: ["insertOne", "insertMany"],
|
create: ["insertOne", "insertMany"],
|
||||||
update: ["updateOne", "updateMany"],
|
update: ["updateOne", "updateMany"],
|
||||||
delete: ["deleteOne", "deleteMany"],
|
delete: ["deleteOne", "deleteMany"],
|
||||||
aggregate: ["json", "flow"],
|
aggregate: ["json", "pipeline"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -559,7 +559,7 @@ class MongoIntegration implements IntegrationBase {
|
||||||
const db = this.client.db(this.config.db)
|
const db = this.client.db(this.config.db)
|
||||||
const collection = db.collection(query.extra.collection)
|
const collection = db.collection(query.extra.collection)
|
||||||
let response = []
|
let response = []
|
||||||
if (query.extra?.actionType === "flow") {
|
if (query.extra?.actionType === "pipeline") {
|
||||||
for await (const doc of collection.aggregate(
|
for await (const doc of collection.aggregate(
|
||||||
query.steps.map(({ key, value }) => {
|
query.steps.map(({ key, value }) => {
|
||||||
let temp: any = {}
|
let temp: any = {}
|
||||||
|
|
Loading…
Reference in New Issue