GraphQL collection query title bug

Solved
Highlighted
Shopify Partner
50 1 3

Hey,

 

I'm currently trying to query collections based on title. It says I can do the according to the docs (https://shopify.dev/docs/admin-api/graphql/reference/queryroot)

 

Having a play against my test store didn't work so I tried the Shopify Admin API GraphiQL explorer (https://shopify.dev/tools/graphiql-admin-api) and it doesn't work there.

 

I was wondering if someone could shed some light?

Before anyone asks, there is a collection called 'Home page'.

 

{
  collections(first: 10, query: "title: Home page") {
    edges {
      node {
        id
        handle
        title
      }
    }
  }
}
0 Likes
Highlighted
Shopify Partner
50 1 3

This is an accepted solution.

I managed to solve this by removing the space 

"title: Home page"

 to

"title:Home page"
0 Likes