App reviews, troubleshooting, and recommendations
Tested everything with the permissions for the CustomApps and via GraphQL Explorer and via Shopify GraphQL App
Mutation -
mutation collectionCreate {
collectionCreate(input: {title: "Nike Air Jordan"}) {
userErrors {
field
message
}
collection {
title
}
}
}
RESPONSE -
{
"data": {
"collectionCreate": null
},
"errors": [
{
"message": "CollectionCreate access denied",
"locations": [
{
"line": 3,
"column": 1
}
],
"path": [
"collectionCreate"
]
}
],
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 990,
"restoreRate": 50
}
}
}
}
Hello @WareWorks
For creating collection using Shopify graphql
you need to go to the following permission path and set particular permission for collection
Settings -> Apps and sales -> develop app -> your app name -> configuration
1. You'll need the write_content
or write_products
scope to create collections.
Basic query for create collection
mutation {
collectionCreate(input: {title: "Digital watches ", descriptionHtml:"A digital watches "}) {
collection {
id
descriptionHtml
}
}
}
thank you
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023