خطوات سير العمل

storage.query

type: "storage.query"

يقرأ a متصل قاعدة بيانات أو دلو نفس مثل a سلسلة.

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.

One of action and sql is required. Everything else — collection, filter, limit, prefix, key — follows the action, exactly as 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}}}

المخرجات

{{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سلسلة لا تستطيع تغيير أي شيء مهما كانت قوالبها

لمحة عامة عن حالة بناء

تشغيله مرة واحدة مع ( لِنَرَ المجموعاتَ ، حَقَائِقُهَا وَمِثَالٌ حَقِيقِيٌّ — إِذَا كَتَبَ ٱلْإِسْتِعْلَامَ ٱلَّذِي يَتَبَعُ مَعَ ٱلْأَشْيَاءِ ٱلْمُقَدَّسَةِ مَعَكَ .