Etapas do fluxo de trabalho

storage.query

type: "storage.query"

Legge una base di dati o cubo collegado. Le stesse azioni di run(), dentro una catena.

freestorage requiredread only
Using Python?

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

storagestringobrigatório

Identificant del stoccaj.

actionstring

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

sqlstring

Per un stoccaggio relatial, in lugar de action.

Un di action e sql is necessarisitâts. Tutto il resto — collection, filter, limit, prefix, key — segue l'azione, esattamente come in run().

{ 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}}}

Saída

{{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}}"

Lege solamente

Scrivitura è storage.write, un tipo diverso con i suoi propri guardas. Una catena data solo a questo non può modificar nulla, qualunque chestione dis.

vista general quando si sta construindo

Rule once once with runStep() per vedere le collezioni, i loro campi e un esempio real — e scrivi la consulta che segue con le forme in davanti a te.