Skip to content

Commit 2ae6af8

Browse files
committed
docs: update data fetch limit documentation from 100 to 1000
1 parent 9895b5d commit 2ae6af8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/web-dashboard/src/pages/Docs.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ const payload = await response.json();`}</pre>
458458
<CodeBlock
459459
method="GET"
460460
url="/api/data/posts"
461-
comment="Fetch all documents in the collection"
461+
comment="Fetch all documents in the collection (default limit 100, max 1000. Use ?limit=1000)"
462462
/>
463463
<CodeBlock
464464
method="GET"

‎docs-legacy/api-reference.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
| `populate` | `?populate=author` | Expand Reference fields into objects |
3232
| `expand` | `?expand=author` | Alias for `populate` |
3333
| `sort` | `?sort=field:asc` | Sort order (`asc`, `desc`, `1`, `-1`) |
34-
| `limit` | `?limit=50` | Limit results (default 100) |
34+
| `limit` | `?limit=50` | Limit results (default: 100, max: 1000) |
3535
| `page` | `?page=1` | Pagination page number |
3636
| `field_gt` | `?price_gt=100` | Greater than filter |
3737
| `field_gte` | `?age_gte=18` | Greater than or equal filter |

‎docs-legacy/database.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ You can refine your `GET` requests using the following query parameters:
7070
| `populate` | `String` | `?populate=author,category` | Expand `Ref` fields into full objects. |
7171
| `expand` | `String` | `?expand=author` | Alias for `populate`. |
7272
| `sort` | `String` | `?sort=createdAt:desc` | Sort results by field and order. |
73-
| `limit` | `Number` | `?limit=25` | Number of documents to return (default: 100, max: 100). |
73+
| `limit` | `Number` | `?limit=25` | Number of documents to return (default: 100, max: 1000). |
7474
| `page` | `Number` | `?page=2` | 1-indexed page number for pagination. |
7575

7676
### Relational Data (Population) 🔗

0 commit comments

Comments
 (0)