This GraphQL query https://shopify.dev/docs/api/admin-graphql/2023-07/queries/codeDiscountNodes can be provided with a query string that can search the title but I want to search the actual discount codes.
This GraphQL query https://shopify.dev/docs/api/admin-graphql/2023-07/queries/codeDiscountNodeByCode can be given the actual discount code, so I can already retrieve the codeDiscountNode that has discount code "CHOCO155".
But how can I retrieve all codeDiscountNodes that has a discount code that starts with "CHOCO"
Solved! Go to the solution