Hi, I have one question about ShopifyAPI::InventoryItem dataI noticed that we can set products to different inventory locations
And from Shopify API as I know, we need to do multiple requests to get all products under each locations
location_id_sku_mapping = ShopifyAPI::Location.all.map do |location|
inventory_item_ids = ShopifyAPI::InventoryLevel.where(location_ids: location.id).map(&:inventory_item_id)
next if inventory_item_ids.blank?
skus = ShopifyAPI::InventoryItem.where(ids: inventory_item_ids.join(',')).map(&:sku)
I am wondering if we can get that info in a simpler way or from ShopifyAPI::Order data?