QueryActions (Commerce Engine)
QueryActions (Commerce Engine)
This is for:
DeveloperIn this article
The Headless commerce engine, controllers, and actions are in open beta and therefore under active development. Reach out to your Coveo team for support in adopting them. |
The query action creators.
See Dispatch Actions.
Loader Function
loadQueryActions
Loads the query
reducer and returns possible action creators.
Parameters
-
engine:
CommerceEngine
The headless commerce engine.
Returns QueryActionCreators
: The query action creators.
QueryActionCreators
updateQuery
Updates the basic query expression (q
).
Parameters
-
payload:
UpdateQueryActionCreatorPayload
The action creator payload.
Returns PayloadAction<UpdateQueryActionCreatorPayload>
: A dispatchable action.
Related Types
UpdateQueryActionCreatorPayload
Properties
-
query?:
string
The basic query expression (e.g.,
acme tornado seeds
).