【发布时间】:2021-06-28 16:29:31
【问题描述】:
在 Shopify 商店前台 grahpQL 在调用商店名称时遇到问题
这是它的代码
let client: Graph.Client = Graph.Client(shopDomain: shopDomain, apiKey: apiKey, locale: locale)
let query = Storefront.buildQuery {
.shop {
.name()
}
}
let task = client.queryGraphWith(query) { response, error in
if let response = response {
print(response);
}else {
print("Query failed: \(error)")
}
}
task.resume()
但没有得到成功响应
【问题讨论】:
标签: ios swift graphql shopify storefront