FROM CACHE - fr_header
Cette communauté a fait place à une assistance de pair-à-pair. L’assistance Shopify ne sera plus proposée pour cette communauté. Nous vous encourageons à entrer en contact avec d’autres marchands et partenaires pour obtenir de l’aide et partager vos expériences ! Veuillez continuer à signaler tout ce qui va à l'encontre de notre Code de conduite ou tout contenu que vous souhaitez faire supprimer.

Field 'fulfillmentCreate' doesn't exist on type 'Mutation

Field 'fulfillmentCreate' doesn't exist on type 'Mutation

alex0000
Shopify Partner
10 0 2

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?

 


 

0 RÉPONSES 0