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?
Maîtrisez l’expansion internationale de votre activité Shopify grâce au parcours d’appr...
By Shopify Feb 7, 2025Agrandissez la vente en gros avec le parcours d’apprentissage de Shopify Academy, B2B...
By Shopify Jan 30, 2025Pour que les clients se sentent encouragés à acheter des produits, ils doivent comprendre ...
By Océanne Sep 3, 2024