Setting the file. One moment.
Subchapter 38.24
queries/discounts-gets-products.graphql
GraphQL19 lines949 B
# scopes: read_discounts
# Bulk query: the products named by a customerGets item scope, joined to the discounts core by node id.
# Connections: discountNodes plus `products` on each customerGets item scope (5).
{
discountNodes {
edges {
node {
id
discount {
__typename
... on DiscountCodeBasic { customerGets { items { __typename ... on DiscountProducts { products { edges { node { __typename id } } } } } } }
... on DiscountCodeBxgy { customerGets { items { __typename ... on DiscountProducts { products { edges { node { __typename id } } } } } } }
... on DiscountAutomaticBasic { customerGets { items { __typename ... on DiscountProducts { products { edges { node { __typename id } } } } } } }
... on DiscountAutomaticBxgy { customerGets { items { __typename ... on DiscountProducts { products { edges { node { __typename id } } } } } } }
}
}
}
}
}