Inventory Shipment Connections

Hey,

At the moment its not possible to get from an inventory shipment back to the inventory transfer, even though the relationship exists the other way around (from transfer down to shipments).
It would be really helpful to traverse the relationship this way inventoryShipment - GraphQL Admin

1 Like

Hey hey @JordanFinners hope all’s well :waving_hand:

Yeah, this makes logical sense to me and you’re right this is currently a limitation. Just to confirm, would this be in cases where a fulfillment provider, for example, has to revert a shipment that’s already in process and put it back into a “transfer” queue? Just trying to understand the shape of the problem this would solve.

Hey Alan,

Not quite this is inventory transfers between locations, to move inventory around between Shopify locations etc.
For example if I want to move 10 tshirts from A to B, I can use a Inventory Transfer.
When I’m ready to move these the Inventory Transfer will have one or many InventoryShipments.

You can get from the Inventory Transfer to the Shipments like so inventoryTransfer - GraphQL Admin

But if you have the Inventory Shipment, you can’t get back to the Inventory Transfer using GraphQL.

For example/comparison you can get from a Product → Product Variant and from the Product Variant back to the Product so the relationship works both ways.

Hey @JordanFinners - thanks for clarifying, that makes total sense. The Product ↔ ProductVariant comparison is a good one too.

I’ve gone ahead and logged this as a feature request on our end here to add the reverse relationship on InventoryShipment back to InventoryTransfer. I definitely get that not being able to traverse that relationship both ways makes things harder than they need to be. Can’t guarantee anything in terms of if/when this would get rolled out, but the feedback has been noted and passed along internally.

Let me know if I can help out further!