docs: fix metadata destructure in query.graph (#11294)
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user