Hey,
Currently the query, search and sort functions on a Inventory Transfer line items connection. Don’t really help filter down the line items inventoryTransfer - GraphQL Admin
It would be very helpful to be able to search by SKU, Barcode or Inventory Item ID in free text or by specific field as these are extremely common needs for inventory movements.
It would also be helpful to be able to sort by updated date, or quantities on the line items. And again to also be able to filter by these as well.
These would really help more efficiently use the API and reduce the amount of tokens used when querying
Hi @JordanFinners! I had a look and can confirm the InventoryTransfer.lineItems connection only takes a free-text query argument (the default field for a case-insensitive multi-field text match, plus id with range support) along with standard cursor pagination. There’s no sortKey, so you can’t sort server-side by updated date or quantity, and there aren’t dedicated filters for SKU, barcode, or inventory item ID.
Worth noting that the parent inventoryTransfers connection does support a sortKey plus richer filters like product_id, product_variant_id, and status, but as you’ve found, none of that extends down to the line items within a single transfer.
For now the practical workaround is to page through the line items once (using lineItemsCount to size the set) and filter/sort client-side. If you need to resolve a SKU or barcode to an inventory item across the store, productVariants and inventoryItems both accept the full search syntax (sku:, barcode:), though they won’t scope to a single transfer.
I’ve passed your request along to the team as feedback. Can’t promise a timeline, but it is logged with the right people - thanks for raising this here!
Hey Donal,
Thank you for looking into this for me. Thats what I’m doing at the moment, however transfers tend to have a much larger number of line items than standard orders etc meaning its a lot of pagination and loading more data than maybe needed, if we could offload the search to the graphql api.