II'm trying to add a script tag through scriptTagCreate mutation in the Shopify GraphQL app as follows.
mutation scriptTagCreate($input: ScriptTagInput!) {
scriptTagCreate(input: $input) {
scriptTag {
id
}
userErrors {
field
message
}
}
}
with the following variables:
{
"input": {
"displayScope": "ALL",
"src": "https://raw.githubusercontent.com/pavinduLakshan/model/master/liveview.js"
}
}
However, I'm getting the following error.
{
"data": {
"scriptTagCreate": null
},
"errors": [
{
"message": "ScriptTagCreate access denied",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"scriptTagCreate"
]
}
],
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 990,
"restoreRate": 50
}
}
}
}
Does anyone know why is this happening? All helpful suggestions are highly appreciated. Thank you.
Solved! Go to the solution
This is an accepted solution.
That should be fine. Can you uninstall GraphiQL app, and then reinstall here: https://shopify-graphiql-app.shopifycloud.com/login making sure script_tags scope is selected?
User | Count |
---|---|
13 | |
12 | |
7 | |
6 | |
5 |