Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Why when i try to make a giftCardDeactivate request with Graphql , tell me that doesn't exists ?
This is the error returned : Field \'giftCardDeactivate\' doesn\'t exist on type \'Mutation\
And below the code :
$mutation = <<<GRAPHQL
mutation giftCardDeactivate(\$id: ID!) {
giftCardDeactivate(id: \$id) {
giftCard {
id
deactivatedAt
}
userErrors {
message
field
code
}
}
}
GRAPHQL;
$variables = ['id' => $giftCardId];
$response = $this->graphClient->query(['query' => $mutation,'variables' => $variables]);
$data = $response->getDecodedBody();
var_dump($data);
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024