docs: fix metadata destructure in query.graph (#11294)

This commit is contained in:
Shahed Nasser
2025-02-04 12:15:14 +02:00
committed by GitHub
parent 462c3e8057
commit ddaeafacdd
8 changed files with 12 additions and 12 deletions
@@ -43,7 +43,7 @@ export const GET = async (
const {
data: brands,
metadata: { count, take, skip },
metadata: { count, take, skip } = {},
} = await query.graph({
entity: "brand",
...req.queryConfig,
@@ -217,7 +217,7 @@ Filters don't apply on fields of linked data models from other modules.
```ts highlights={[["8", "skip", "The number of records to skip before fetching the results."], ["9", "take", "The number of records to fetch."]]}
const {
data: myCustoms,
metadata: { count, take, skip },
metadata: { count, take, skip } = {},
} = await query.graph({
entity: "my_custom",
fields: ["id", "name"],