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".

Show fields

Arguments

•String

Returns the elements that come after the specified cursor.

•String

Returns the elements that come before the specified cursor.

•Int

Returns up to the first n elements from the list.

•Int

Returns up to the last n elements from the list.

•SearchPrefixQueryType

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

Show enum values
•[ProductFilter!]

Returns a subset of products matching all product filters.

The input must not contain more than 250 values.

Show input fields
•String!
required

The search query.

•Boolean
Default:false

Reverse the order of the underlying list.

•SearchSortKeys
Default:RELEVANCE

Sort the underlying list by the given key.

Show enum values
•[SearchType!]

The types of resources to search for.

The input must not contain more than 250 values.

Show enum values
•SearchUnavailableProductsType

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

Show enum values


Was this section helpful?

•[SearchResultItemEdge!]!
non-null

A list of edges.

Show fields
•[SearchResultItem!]!
non-null

A list of the nodes contained in SearchResultItemEdge.

Show union types
•PageInfo!
non-null

Information to aid in pagination.

Show fields
•[Filter!]!
non-null

A list of available filters.

Show fields
•Int!
non-null

The total number of results.


Was this section helpful?