Liquid, Javascript, thèmes
here is the error
"errors": [
{
"message": "Field 'fulfillmentCreate' doesn't exist on type 'Mutation'",
"locations": [
{
"line": 2,
"column": 9
}
],
"path": [
"mutation fulfillmentCreate",
"fulfillmentCreate"
],
"extensions": {
"code": "undefinedField",
"typeName": "Mutation",
"fieldName": "fulfillmentCreate"
}
},
{
"message": "Variable $input is declared by fulfillmentCreate but not used",
"locations": [
{
"line": 1,
"column": 1
}
],
"path": [
"mutation fulfillmentCreate"
],
"extensions": {
"code": "variableNotUsed",
"variableName": "input"
}
}
],
i got the same code for months and it work well but recently I have this error, has this function been removed from graphql?
here is the code with nodejs package -> @Shopify/shopify-api
await shopifyGraphqlClient.query({
data: {
query: `mutation fulfillmentCreate($input: FulfillmentInput!) {
fulfillmentCreate(input: $input) {
userErrors {
field
message
}
}
}`,
variables: {
input: {
locationId: locationId,
notifyCustomer: false,
orderId: `gid://shopify/Order/${order.marketplaceOrderId}`,
...trackingInfos,
},
},
},
})
I point out that this code has been working for months,
could someone please enlighten me?
Pour que les clients se sentent encouragés à acheter des produits, ils doivent comprendre ...
By Océanne Sep 3, 2024Il y a possiblement une grosse opportunité négligée dans la vente de vos produits. La créa...
By Océanne Jul 16, 2024La confiance est l'une des devises les plus importantes avec laquelle vous traitez lorsque...
By Océanne Jun 14, 2024