Graphql: can't figure out how to get products from two or more collections

Graphql: can't figure out how to get products from two or more collections

George00
Visitor
2 0 1

Hello everyone,

I'm trying to get two collections by theirs handle with the API search syntax.

But i can get only one collection and not two.

Maybe because only "title" is the supported filter parameter.

So how can i use the handle and get two or more collections.

 

API VERSION 2022-01

query {
  collections(query: "(handle:first-handle) AND (handle:second-handle)" first: 5 ) {
    edges {
      node {
        title
        handle
        
      }
    }
    
  }
}

 

Thanks to everyones

Replies 0 (0)