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_77 /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?