How to access product data using Metaobjects?

Hello, I’ve recently started using Metaobjects and have been able to output simple text fields and such but for an upsell section, I’ve set one of the fields as a product - when I tried to output the product title in liquid it was just blank. eg:

{% for item in shop.metaobjects.upsell.values %}
  <div>{{ item.product.title }}</div>
{% endfor %}

My product field is named product, maybe that’s a restricted handle but i’ve seen articles online using the same handle so i’d be surprised.

If i just output item.product it returns me a gid url eg:

gid://shopify/Product/7003128954937​

Am I missing something? Thanks!

You would need to use the [value]. So in your case

{{ item.product.value.title }}

Ah that’s the one, thank you!