Not getting refundLineItems Id while using graphql query

Topic summary

A user is experiencing an issue retrieving the id field for refundLineItems when querying Shopify’s GraphQL API.

Query Details:

  • Using the refund query with a specific Refund ID
  • Attempting to fetch refundLineItems with pagination (first 100)
  • Trying to access the id field within the node object

Problem:
The id field is not appearing in the API response, despite being included in the query structure.

Current Status:
The issue remains unresolved with no responses or solutions provided yet. The query syntax appears partially corrupted or improperly formatted in the posted code snippet, which may be contributing to the problem.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

Hi. I’m using the GraphQL query to fetch refundLineItems. But I need help to get the ID from the response. Here is the query,

query { refund(id: "gid://shopify/Refund/xxxxxxx") { id refundLineItems(first: 100) { edges { node { id quantity restockType subtotalSet { presentmentMoney { amount currencyCode } shopMoney { amount currencyCode } } totalTaxSet { presentmentMoney { amount currencyCode } shopMoney { amount currencyCode } } lineItem { id } } } } } }