Hey!!
So, if you’re trying to confirm that the claimOwnership field is set correctly for a product after using the new productCreate mutation, may be try following the below steps it might solve your issue:
1. Check the Response of the Mutation:
When you create a product using the productCreate
mutation, ensure that the response contains the field indicating ownership is claimed. You should receive the claimOwnership
field as part of the response. If the claimOwnership
was set correctly, it should appear with the value you provided (e.g., true
).
Example:
mutation {
productCreate(input: { title: "New Product", claimOwnership: true, ... }) {
product {
id
title
claimOwnership
}
}
}
If claimOwnership
is set correctly, the response will show:
{
"product": {
"id": "gid://shopify/Product/1234567890",
"title": "New Product",
"claimOwnership": true
}
}
2. Check Product Details via GraphQL Query:
After the product is created, you can use a GraphQL query to fetch the product details and check if the claimOwnership
field is correctly set.
Example query:
query {
product(id: "gid://shopify/Product/1234567890") {
id
title
claimOwnership
}
}
If claimOwnership
is properly set, it will return true
in the response for that product.
3. Check in the Admin UI:
As mentioned, the claimOwnership field is important for enabling the new product.configuration admin UI extension. You can confirm that this extension works properly by navigating to the product page in Shopify Admin and ensuring the extension appears. If the extension is available, it’s a strong indication that ownership was claimed successfully.
If you still have trouble confirming the field, I would suggest you to contact Shopify support or a Shopify developer might be necessary to ensure the mutation is working as intended.