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