searchableFields of the predictiveSearch query failing validation in storefront graphql schema

The searchableFields argument of the predictiveSearch query is not available on the GraphQL schema for the Storefront API and fails validation, even though it’s clearly stated as available on every public api version (2026-01 up to 2027-01 RC) of the documentation:

https://shopify.dev/docs/api/storefront/2026-07/queries/predictiveSearch

Our build error occured suddenly on 2026-07 without a code change on our side, but even upgrading to 2027-01 RC fails in the same way.

GraphQL query:

query PredictiveSuggestions($language: LanguageCode!, $query: String!) @inContext(language: $language) {
  predictiveSearch(
    query: $query
    limit: 5
    limitScope: ALL
    searchableFields: [TITLE, PRODUCT_TYPE, VENDOR, VARIANTS_TITLE, VARIANTS_SKU]
  ) {
    queries {
      text
    }
    collections {
      id
      handle
      title
      image {
        id
        url
      }
    }
    products {
      ...ProductShort
    }
  }
}

Build log on 2026-07:

[FAILED] GraphQL Document Validation failed with 1 errors;
[FAILED]   Error 0: Unknown argument "searchableFields" on field "QueryRoot.predictiveSearch".
[FAILED]     at /home/runner/work/xx/src/data/graphql/search.graphql:6:5

Hi @martinbaumgart, searchableFields is now deprecated, but it remains in the schema when deprecated arguments are included.

Introspection excludes deprecated arguments by default, so refreshing the schema used by your build can trigger this error without any query changes. The deprecation applies across API versions, which would also explain why switching versions didn’t help. I reproduced the error with a minimal query and confirmed it validates when those arguments are included.

If you’re using GraphQL Code Generator’s URL loader, try adding inputValueDeprecation: true to the schema URL options, alongside any existing headers, then rerun codegen. Here’s the loader option reference.

If that still fails, or you’re loading the schema another way, could you share the schema-loading configuration and relevant tooling versions, with any tokens removed?