Unable to get Product type - unity buy SDK

Topic summary

A developer is experiencing issues retrieving product category and product type information when using the Unity Buy SDK to fetch product lists.

Current Situation:

  • Product category and product type are properly configured in the Shopify admin (confirmed via screenshot)
  • Using ShopifyBuy.Client().products() method to fetch product details
  • Successfully retrieving basic product information (title, description)
  • However, product.productType returns no data

Technical Details:

  • The code iterates through products and logs title, description, and productType
  • The productType field appears to be empty or null despite being set in the admin panel

Status: The issue remains unresolved with no responses or solutions provided yet. The developer needs guidance on how to properly access product category and type fields through the Unity Buy SDK API.

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

I am using Unity buy SDK,

I want product Category and Type, when I am fetcing product list I am unable to get that information.

In below image it can be seen that I have added both product category and product type.

I am using this peice of code to fetch the product details.

ShopifyBuy.Client().products((products, error, after) => {
    if (error != null) {
        Debug.Log("Encountered an SDK Error");
        return;
        // it's unlikely but if an invalid GraphQL query was sent a list of errors will be returned
    } 

    // products is a List<Product>
    Debug.Log("Your shop has " + products.Count + "products");
    Debug.Log("============================");

  //  MSFileHandler.SaveJson("json.json",products);

    foreach(Product product in products) {
        Debug.Log("Product Title: " + product.title());
        Debug.Log("Product Description: " + product.description());
        Debug.Log("------type : "+ product.productType());
       
    }
});

I am getting following response