Discussing Shopify Functions development, deployment, and usage in Shopify apps.
I'm new to GraphiQL and working through the tutorial to use a custom font in extensible checkout.
On this step - Step 4: Apply a custom font to secondary surfaces - it suggests to use this to query files to find the GID of a font I just uploaded:
query queryFiles {
files(first: 10) {
edges {
node {
... on GenericFile {
id
url
fileStatus
}
}
}
}
}
The tutorial says I should then get a response like this:
{
"data": {
"files": {
"edges": [
{
"node": {
"id": "gid://shopify/GenericFile/1",
"url": "https://cdn.shopify.com/s/files/1/0000/0001/files/font-file.woff2?v=1682440653",
"fileStatus": "READY"
}
}
]
}
}
}
although in my response, the nodes are all empty:
{
"data": {
"files": {
"edges": [
{
"node": {}
},
{
"node": {}
},
{
"node": {}
},
{
"node": {}
},
{
"node": {}
},
{
"node": {}
},
{
"node": {}
},
{
"node": {}
},
{
"node": {}
},
{
"node": {}
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 6,
"actualQueryCost": 6,
"throttleStatus": {
"maximumAvailable": 20000,
"currentlyAvailable": 19994,
"restoreRate": 1000
}
}
}
}
Am I missing something?
Thanks!
I have the same issue. Please help 🙂