如何在 Shopify graphql 中通过电子邮件找到客户

时间:2021-06-29 13:58:00

标签: shopify-app shopify-api

现在我正在测试 Shopify graphql 以通过电子邮件获取客户。 但 Shopify 客户查询无法正常工作。查询如下。

    {
  customers(first: 10, query:"email:'test@gmail.com'") {
    edges {
      node {
        id
        lastName
        verifiedEmail
        firstName
        lastName
        email
        phone
        tags 
      }
    }
  }
}

但结果如下。

   {
  "data": {
    "customers": {
      "edges": []
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 252,
      "actualQueryCost": 2,
      "throttleStatus": {
        "maximumAvailable": 1000,
        "currentlyAvailable": 998,
        "restoreRate": 50
      }
    }
  }
}

Shopify 商店有那个客户。但是查询没有找到客户。 我相信我们可以解决这个问题。 如果你有经验,请帮助我。 谢谢。

0 个答案:

没有答案