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
+1 -1
View File
@@ -2028,7 +2028,7 @@ export const GET = async (
const {
data: myCustoms,
metadata: { count, take, skip },
metadata: { count, take, skip } = {},
} = await query.graph({
entity: "my_custom",
fields: ["id", "name"],
@@ -711,7 +711,7 @@ export const syncStep = createStep(
while (hasMore) {
const {
data: products,
metadata: { count },
metadata: { count } = {},
} = await query.graph({
entity: "product",
fields: [
@@ -361,7 +361,7 @@ export const GET = async (
const {
data: digitalProducts,
metadata: { count, take, skip },
metadata: { count, take, skip } = {},
} = await query.graph({
entity: "digital_product",
fields: [
@@ -1063,7 +1063,7 @@ export const GET = async (
const {
data: subscriptions,
metadata: { count, take, skip },
metadata: { count, take, skip } = {},
} = await query.graph({
entity: "subscription",
fields: [