Shopify graphql customerCreate
在graphql瑜伽服务器上使用店面api。打开操场测试查询和变异 根据文档,这应该适用于创建客户Shopify graphql customerCreate,graphql,shopify,Graphql,Shopify,在graphql瑜伽服务器上使用店面api。打开操场测试查询和变异 根据文档,这应该适用于创建客户 mutation { customerCreate( input: { firstName: "dave", lastName: "smith", email: "davesmith@gmail.com", password: "HiZqFuDvDdQ7", accep
mutation {
customerCreate(
input: {
firstName: "dave",
lastName: "smith",
email: "davesmith@gmail.com",
password: "HiZqFuDvDdQ7",
acceptsMarketing: true
}
) {
customer {
id
firstName
lastName
email
}
customerUserErrors {
field
message
}
customer {
id
}
}
}
但是,这将返回一个错误
{
"data": {
"customerCreate": null
},
"errors": [
{
"message": "Customer accounts are disabled.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"customerCreate"
]
}
]
}
有人能帮你打开Shopify管理员中的客户帐户吗。如果它们被关闭,那么您就不能创建客户是有道理的 在Shopify管理员中打开客户帐户。如果它们被关闭,那么您就不能创建客户是有道理的 我使用相同的查询得到“CustomerInput”不接受参数“password”(字面上的副本粘贴在我的shopify graphiql上)…是否更改了?如何使用电子邮件和密码创建客户?我得到的“CustomerInput”不接受使用相同查询的参数“password”(字面上的副本粘贴在我的shopify graphiql上)…是否更改了?如何使用电子邮件和密码创建客户?