Last active
February 14, 2023 13:22
-
-
Save airarm/311ecdc75899f8de4ba28682e3ffe0d5 to your computer and use it in GitHub Desktop.
Shopify file create with GraphQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation fileCreate($files: [FileCreateInput!]!) { | |
fileCreate(files: $files) { | |
files { | |
alt | |
createdAt | |
fileErrors{ | |
code | |
details | |
message | |
} | |
fileStatus | |
preview{ | |
status | |
image{ | |
altText | |
url | |
id | |
width | |
height | |
} | |
} | |
} | |
userErrors { | |
field | |
message | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files": [ | |
{ | |
"alt": "", | |
"contentType": "IMAGE", | |
"originalSource": "https://via.placeholder.com/600/FF0000/FFFFFF" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment