# searchableFields of the predictiveSearch query failing validation in storefront graphql schema

**URL:** <https://community.shopify.dev/t/searchablefields-of-the-predictivesearch-query-failing-validation-in-storefront-graphql-schema/38826>\
**Category:** Hydrogen and Storefront APIs\
**Tags:** storefront-api\
**Created:** [October 22, 2026, 11:52am UTC](https://community.shopify.dev/t/searchablefields-of-the-predictivesearch-query-failing-validation-in-storefront-graphql-schema/38826 "2026-10-22T11:52:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinbaumgart](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/martinbaumgart/32/21516_2.png) [@martinbaumgart](https://community.shopify.dev/u/martinbaumgart)\
**Post date:** [October 22, 2026, 11:52am UTC](https://community.shopify.dev/t/searchablefields-of-the-predictivesearch-query-failing-validation-in-storefront-graphql-schema/38826/1 "2026-10-22T11:52:13Z")

</div>

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](https://shopify.dev/docs/api/storefront/2026-07/queries/predictiveSearch#arguments-searchableFields)

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:**

```graphql
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:**

```bash
[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

```

---

<div class="post-metadata">

**Author:** ![Yoni-Shopify](https://avatars.discourse-cdn.com/v4/letter/y/35a633/32.png) [@Yoni-Shopify](https://community.shopify.dev/u/Yoni-Shopify)\
**Post date:** [October 23, 2026, 2:16pm UTC](https://community.shopify.dev/t/searchablefields-of-the-predictivesearch-query-failing-validation-in-storefront-graphql-schema/38826/2 "2026-10-23T14:16:33Z")

</div>

Hi @martinbaumgart, `searchableFields` is now [deprecated](https://shopify.dev/docs/api/storefront/2026-07/queries/predictiveSearch#arguments-searchableFields), 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](https://the-guild.dev/graphql/tools/docs/api/loaders/url/src/interfaces/loadfromurloptions#inputvaluedeprecation).

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?
