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