Migrate saved searches to customer segments

In API version 2022-04, we introduced the Segment object in the GraphQL Admin API, which you can use to filter out specific customers for marketing, analytics, and reporting purposes.

As of API version 2022-04, saved searches and discounts applied to saved searches are deprecated in the GraphQL Admin API. These changes affect all merchants because all stores have built-in, default saved searches.

This guide shows you how to migrate your app from using saved searches to customer segments.