# storage.query

Canonical URL: https://developers.iagenify.com/ar/sdk/workflows/steps/storage-query/
Language: ar

`type: "storage.query"`

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

Status: free · storage required · read only

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `storage` | string | مطلوب | -المخزن هو المُحدّد . |
| `action` | string |  | `find`, `count`, `aggregate`, `collections`, `list`, `object`, `overview`… |
| `sql` | string |  | لخزن علاقة، بدلاً من `action`. |

One of `action` and `sql` is required. Everything else — `collection`, `filter`, `limit`, `prefix`, `key` — follows the action, exactly as in [run()](/ar/sdk/ref/connected-storage/run).

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

## المخرجات {#output}

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

## فقط {#readonly}

& جاري [storage.write](/ar/sdk/workflows/steps/storage-write)سلسلة لا تستطيع تغيير أي شيء مهما كانت قوالبها

## لمحة عامة عن حالة بناء {#overview}

تشغيله مرة واحدة مع [(](/ar/sdk/ref/workflow/run-step) لِنَرَ المجموعاتَ ، حَقَائِقُهَا وَمِثَالٌ حَقِيقِيٌّ — إِذَا كَتَبَ ٱلْإِسْتِعْلَامَ ٱلَّذِي يَتَبَعُ مَعَ ٱلْأَشْيَاءِ ٱلْمُقَدَّسَةِ مَعَكَ .

- [storage.write](/ar/sdk/workflows/steps/storage-write): تغييره.
- [run()](/ar/sdk/ref/connected-storage/run): نفس الأعمال
- [خطوات سير العمل](/ar/sdk/workflows/steps): الأنواع الثلاثة والعشرون.

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

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