QueryActions (Commerce Engine)
QueryActions (Commerce Engine)
This is for:
DeveloperIn this article
The query action creators.
See Dispatch Actions.
Loader Function
loadQueryActions
Loads the commerce query reducer and returns possible query action creators.
Parameters
-
engine:
CommerceEngine
The headless commerce engine.
Returns QueryActionCreators
: The query action creators.
QueryActionCreators
updateQuery
Updates the basic query expression.
Parameters
-
payload:
UpdateQueryPayload
The action creator payload.
Returns PayloadAction<UpdateQueryPayload>
: A dispatchable action.
Related Types
UpdateQueryPayload
Properties
-
query?:
string
The new basic query expression (e.g.,
red surfboards
).