collection
Returns the details of a product based on the specified locator.
Usage​
Arguments
slug
*String
Description
Slug of the collection you want to query.
- Query
- Response
query ($slug: String!) {
collection (slug: $slug) {
# StoreCollection fields
}
}
The collection
query returns a StoreCollection
. To learn more about each field that can be queried check the StoreCollection
reference.
Example​
Get the ID, type, SEO title and selected facets - with key and value - of the collection with slug office
.