--- title: "GraphQL Admin API: Update to returnLineItems connection - Shopify developer changelog" description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/graphql-admin-api-update-to-returnlineitems-connection md: https://shopify.dev/changelog/graphql-admin-api-update-to-returnlineitems-connection.md --- [Back to Developer changelog](https://shopify.dev/changelog) July 1, 2024 Tags: * Action Required * Admin GraphQL API * 2024-07 # GraphQL Admin API: Update to `returnLineItems` connection Starting in version `2024-07`, the [`Return.returnLineItems` connection](https://shopify.dev/docs/api/admin-graphql/2024-04/objects/Return#connection-returnlineitems) becomes an interface type. This change is designed to accommodate more diverse return item types in the future, which will increase your flexibility in handling returns. To maintain compatibility with existing implementations, adjust their queries to use an inline fragment, as shown in the example below. This adjustment ensures that queries will continue to function correctly with the new interface type. ```graphql returnLineItems(first: 30) { edges { cursor node { ... on ReturnLineItem { id ...ReturnLineItemAttributes } } } } ```