I am probably missing something simple but I cannot find what.
When I run this GraphQL query in the Shopify GraphiQL App it comes back with 10 products:
{
shop {
name
}
products(first: 10) {
edges {
node {
id
title
description
}
}
}
}
When I add a query filter like this:
{
shop {
name
}
products(first: 10, query: "title=bike") {
edges {
node {
id
title
description
}
}
}
}
It comes back with nothing , but when I run this on https://shopify.dev/apps/tools/graphiql-admin-api it works. Is there maybe some setting in the shop that I am missing that doesn’t allow filtering on title?
Other queries I tried which where not working:
- products(first: 10, query: “description=the”)
- products(query:“title:bike” first:5 )
- products(first: 10, query:“title=b”)
Hopefully someone can shine a light and push me in the right direction.