Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

[BUG] Admin GraphQL API - Can't query order.lineItems.edges.node.fulfillmentService fields

[BUG] Admin GraphQL API - Can't query order.lineItems.edges.node.fulfillmentService fields

EugeneKim
Shopify Partner
60 3 29

I have a private Shopify app and I'm running into errors querying for orders that I am not coming across when making the same query using an access token I've received via OAuth.

The query:

 

query bugOrderQuery {
  orders(first: 1) {
    edges {
      node {
        lineItems(first: 1) {
          edges {
            node {
              fulfillmentService {
                id
              }
            }
          }
        }
      }
    }
  }
}

 

 

The response:

 

{
  "errors": [
    {
      "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 6cedcef8-faf7-401d-80d7-2a45fbae6013 (include this in support requests).",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "requestId": "6cedcef8-faf7-401d-80d7-2a45fbae6013"
      }
    }
  ]
}

 

 Something else to note is that the documentation for LineItem.fulfillmentService is incorrect

  • fulfillmentService (FulfillmentService!)

    Name of the service provider who fulfilled the order.

    Valid values are either manual or the name of the provider. For example, amazon, shipwire.

LineItem.fulfillmentService should describe the field as FulfillmentService and not simply the name.

Reference: https://shopify.dev/docs/admin-api/graphql/reference/orders/lineitem

 

 

Replies 2 (2)

CalD
Shopify Staff
140 22 36

Hey @EugeneKim,

This is an issue our team is aware of and is looking into. No timeline for a fix yet, but stay tuned!

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

EugeneKim
Shopify Partner
60 3 29

Got it, thanks @CalD for the reply! Acknowledgement that Shopify staff read the post means a lot.