工作流步骤

storage.query

type: "storage.query"

读取连接的数据库或桶。 与运行( ) 相同, 在链条内 。

freestorage requiredread only
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

storagestring必填

仓库的识别资料

actionstring

find, count, aggregate, collections, list, object, overview…

sqlstring

而不是用于用于 action.

其中一个 action 和 sql 其它一切—— collection, filter, limit, prefix, key - 紧跟行动,如 运行().

{ id: "read", type: "storage.query", config: {
    storage: "…", action: "find", collection: "posts",
    filter: { createdAt: { $gte: "{{input.since}}" } }, options: { limit: 50 } } }
{"id": "read", "type": "storage.query", "config": {
    "storage": "…", "action": "find", "collection": "posts",
    "filter": {"createdAt": {"$gte": "{{input.since}}"}}, "options": {"limit": 50}}}

输出

{{steps.read.output.result}}     // what the action returned
{{steps.read.output.storage}}    // the storage's label
{{steps.read.output.provider}}
"{{steps.read.output.result}}"     # what the action returned
"{{steps.read.output.storage}}"    # the storage's label
"{{steps.read.output.provider}}"

其只读

正在写入 storage.write, 一种不同的类型, 有自己的警卫。 仅给这个链条的链条不能修改任何东西, 不管它的模板怎么说。

正在建设时的概览

一次一起运行 运行Step() 查看收藏、它们的字段和真正的例子——然后用前面的形状写出随后的查询。