Query Functions
All React hooks have corresponding async query functions for use in Node.js, server-side rendering, or vanilla JavaScript applications.Overview
Query functions return Promises and can be used anywhere JavaScript runs:DAO Functions
getDAOs
Fetch all DAOs with optional pagination and ordering.Parameters
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | - | Max items to return |
after | string | - | Cursor for forward pagination |
before | string | - | Cursor for backward pagination |
orderBy | string | 'createdAt' | Sort field |
orderDirection | string | 'desc' | Sort direction |