I have problem with query product by product_type, exactly product which does not have product type
See these picture
Hi @QuanIceTea
I did some testing and was able to get it to work like this:
{
products(first: 10, query: "NOT product_type:'Bold Test Product'" ) {
edges {
node {
id
title
createdAt
}
}
}
}
as well as like this:
{
products(first: 10, query: "-product_type:'Bold Test Product'" ) {
edges {
node {
id
title
createdAt
}
}
}
}
I think the issue you were having was coming from the parentheses inside the query term. You can read more about the search syntax here: https://shopify.dev/api/usage/search-syntax Hope this helps!
Hi, when I print this
{{ product.metafields.custom.add_product_to_show }}
I got this gid://shopify/Product/8019965837629
how can I show the above product title and description?
This way not showing title:
{{ product.metafields.custom.add_product_to_show.title }}