---
title: >-
  New collection_id filter added to products query filters - Shopify developer
  changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/posts/new-collection_id-filter-added-to-products-query-filters
  md: >-
    https://shopify.dev/changelog/posts/new-collection_id-filter-added-to-products-query-filters.md
metadata:
  effectiveApiVersion: 2024-10
  affectedApi:
    - displayName: GraphQL Admin API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2024-11-06T16:38:12-05:00'
  postedAt: '2025-01-01T16:37:00-05:00'
  updatedAt: '2025-01-13T13:11:50-05:00'
  effectiveAt: '2025-01-01T16:37:00-05:00'
---

January 1, 2025

# New `collection_id` filter added to `products` query filters

DateJanuary 1, 2025

Version[2024-10](https://shopify.dev/changelog?api_version=2024-10)

FlagsNew

SurfacesAPI

Affected APIs[GraphQL Admin API](https://shopify.dev/changelog?api_type=admin-graphql)

As of the **2024-10** version of the GraphQL Admin API, a new filter, `collection_id`, has been added to the `products` query. This filter allows you to retrieve products that belong to a specific collection.

When using the `collection_id` filter, it can be combined with the following filters:

* `created_at`
* `updated_at`
* `published_at`
* `gift_card`
* `handle`
* `combined_listing_role`
* `product_type`
* `status`
* `title`
* `vendor`

For more details on all available attributes for the `products` query, visit the [Shopify developer documentation](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/products#argument-query) on [shopify.dev](https://shopify.dev/).

Example usage of the `collection_id` filter in a query:

```graphql
{
  products(query: "collection_id:1234567890") {
    edges {
      node {
        id
        title
      }
    }
  }
}
```

This query retrieves products from the collection with the ID `1234567890`.
