Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi guys! I have a problem with request API shopify.
I would like get a filter to my request to request only particular collections.
My request:
const COLLECTIONS_QUERY = gql`
query Collections(
$country: CountryCode
$language: LanguageCode
) @inContext(country: $country, language: $language) {
collections(first: 1, query: "title:'NAME MY COLLECTIONS'") {
nodes {
id
title
description
handle
seo {
description
title
}
image {
id
url
width
height
altText
}
}
}
}
`;
but it's so strange because the request return a different collection, I had trying to change the name, for example using 'name' or \'name\' but nothing... the request return always a different collection (same name but with a one word more).
Someone could help me? Perhaps i forgotten some stuff, I don't kwon. Thank you