How can access product tags on Graphql Input query for function

Topic summary

A developer is building a Shopify Function for the checkout page and needs to access product tags through GraphQL queries. They report that product tags cannot be accessed directly in the current implementation.

Current Challenge:

  • Product tags are not available in the standard Shopify Function input query
  • The developer is seeking alternative methods or workarounds to retrieve tag data

Code Context:

  • The provided GraphQL query shows access to cart data including subtotal, delivery groups, product variants, and merchandise lines
  • The query structure appears incomplete or corrupted (contains reversed/garbled text like “sknahT”, “rodnev”, “eltit”)

Status: The question remains unanswered with no solutions or workarounds provided yet. This appears to be a limitation in Shopify’s current Function API capabilities for checkout customization.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hey,
I am building shopify function for checkout page.
On that i need product tags so how can i access product tags currently as i know i am not able to access product tags directly.
I just want to know to the way to access tags for shopify function.

Here is my Input Query:

query RunInput {
  cart {
    cost{
      subtotalAmount{
        amount
        currencyCode
      }
    }
    deliveryGroups{
      id
      deliveryOptions{
        handle
        title
      }
      deliveryAddress{
        provinceCode
        zip
      }
    }
    lines {
      quantity
      merchandise {
        __typename
        ...on ProductVariant {
            id
            sku
            product{
              id
              productType
              title
              vendor
            }
        }
      }
    }
  }
}

Thanks