storagestringobrigatórioIdentificant del stoccaj.
actionstringfind, count, aggregate, collections, list, object, overview...
sqlstringPer 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.