Skip to main content
Anchor to SearchResultItemConnection

SearchResultItemConnection

connection

An auto-generated type for paginating through multiple SearchResultItems.

Anchor to Queries with this connectionQueries with this connection

•query

Returns paginated search results for Product, Page, and Article resources based on a query string. Results are sorted by relevance by default.

The response includes the total result count and available product filters for building faceted search interfaces. Use the prefix argument to enable partial word matching on the last search term, allowing queries like "winter snow" to match "snowboard" or "snowshoe".

Arguments

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•SearchSortKeys
Default:RELEVANCE

Sort the underlying list by the given key.

•String!
required

The search query.

•SearchPrefixQueryType

Specifies whether to perform a partial word match on the last search term.

•[ProductFilter!]

Returns a subset of products matching all product filters.

The input must not contain more than 250 values.

•[SearchType!]

The types of resources to search for.

The input must not contain more than 250 values.

•SearchUnavailableProductsType

Specifies how unavailable products or variants are displayed in the search results.



Was this section helpful?

•[SearchResultItemEdge!]!
non-null

A list of edges.

•[SearchResultItem!]!
non-null

A list of the nodes contained in SearchResultItemEdge.

•PageInfo!
non-null

Information to aid in pagination.

•[Filter!]!
non-null

A list of available filters.

•Int!
non-null

The total number of results.


Was this section helpful?