QueryActions (Commerce Engine)

This is for:

Developer

The query action creators.

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

Returns PayloadAction<UpdateQueryPayload>: A dispatchable action.

UpdateQueryPayload

Properties

  • query?: string

    The new basic query expression (e.g., red surfboards).