Tags:
- Admin GraphQL API
- 2024-10
New collection_id filter added to products query filters
collection_id filter added to products query filtersAs of the 2024-10 version of the GraphQL Admin API, a new filter, , has been added to the products query. This filter allows you to retrieve products that belong to a specific collection.
When using the filter, it can be combined with the following filters:
handlestatustitlevendor
For more details on all available attributes for the products query, visit the Shopify developer documentation on shopify.dev.
Example usage of the filter in a query:
{
products(query: "collection_id:1234567890") {
edges {
node {
id
title
}
}
}
}
This query retrieves products from the collection with the ID 1234567890.
Was this section helpful?