在shopify商店中使用GraphQL创建销售计划时,productIDs不存储

问题描述 投票:0回答:1
  1. [创建销售计划的突变] (https://i.stack.imgur.com/gNjQJ.png)
  2. [在变量中:“资源”不起作用,所以,productIds 不存储在 销售计划](https://i.stack.imgur.com/3LXsA.png)
  3. Result of created selling plan product count is
0

我希望在销售计划中存储多种产品

graphql shopify
1个回答
0
投票

您的 GQL 不正确,因为当您分配给 resources 属性时,您分配的是一个 ProductId 数组,而不是单个产品。尝试将您的 GQL 更改为

 resources: {
      productVariantIds: ["gid://shopify/ProductVariant/39606641322169"],
  }
© www.soinside.com 2019 - 2024. All rights reserved.