Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I am using shopify graphQL admin api and I get errors like [field] doesn't exist on type [resource] though they exist according to graphQL admin api documentation as you can see below
and errors as well
Any insights would be appreciated
Solved! Go to the solution
This is an accepted solution.
Images are paginated so you need to do it like this: (you can change 10 to whatever you want)
mutation productCreate($input: ProductInput!) {
productCreate(input: $input) {
product {
id
images(first: 10) {
edges {
node {
id
}
}
}
}
shop {
id
}
userErrors {
field
message
}
}
}
This is an accepted solution.
Images are paginated so you need to do it like this: (you can change 10 to whatever you want)
mutation productCreate($input: ProductInput!) {
productCreate(input: $input) {
product {
id
images(first: 10) {
edges {
node {
id
}
}
}
}
shop {
id
}
userErrors {
field
message
}
}
}