--- title: >- Search discountNodes by exact discount code in the GraphQL Admin API - 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/search-discountnodes-by-exact-discount-code-in-the-graphql-admin-api md: >- https://shopify.dev/changelog/search-discountnodes-by-exact-discount-code-in-the-graphql-admin-api.md metadata: effectiveApiVersion: 2025-01 affectedApi: - displayName: Admin GraphQL API handle: admin-graphql primaryTag: displayName: API handle: api secondaryTag: displayName: New handle: new indicatesActionRequired: false createdAt: '2024-12-02T15:54:02-05:00' postedAt: '2024-12-16T00:00:00-05:00' updatedAt: '2024-12-23T11:30:42-05:00' effectiveAt: '2024-12-16T00:00:00-05:00' --- December 16, 2024 Tags: * Admin GraphQL API * 2025-01 # Search discountNodes by exact discount code in the GraphQL Admin API As of API `2025-01`, you can use discountsNodes() to search for exact discount codes with the `code` prefix in the query argument. This update allows developers to search for exact first-party and third-party discount codes through the GraphQL Admin API, offering more flexibility and precision in finding the right discounts for merchants. Learn more about [discountNodes here](https://shopify.dev/docs/api/admin-graphql/2024-10/queries/discountNodes).