def line_item_query(order, variant_id) do from l in assoc(order, :line_items), where: l.variant_id == ^variant_id, select: l end