Skip to content
Last update: May 29, 2025

productSuggestions query

This query provides product name suggestions based on partial user input. It is typically used for autocomplete functionality in search fields.

Arguments

Argument Description
storeId String! The Id of the store to retrieve product suggestions from.
query String The text to search for product name suggestions.
size Int The maximum number of suggestions to return.

Possible return

Possible return Description
ProductSuggestionsQueryResponseType A list of product name suggestions.
1
2
3
4
5
6
7
8
9
{
  productSuggestions(
    storeId: "B2B-store",
    size: 10,
    query: "xer"
  ) {
    suggestions
  }
}
{
  "data": {
    "productSuggestions": {
      "suggestions": [
        "Xerox WorkCentre 3215/NI Monochrome Laser Printer",
        "Xerox WorkCentre 6515/DN - multifunction printer",
        "Xerox WorkCentre 3225/DNI Monochrome Laser Printer",
        "Xerox WorkCentre 3335DNI Mono Laser Multifunction Printer/Copier/Scanner/Fax Machine"
      ]
    }
  }
}