A scoped and simplified part of the headless state that is relevant to the QueryTrigger controller.

interface QueryTriggerState {
    newQuery: string;
    originalQuery: string;
    wasQueryModified: boolean;
}

Properties

newQuery: string

The new query returned by a query trigger rule in the query pipeline.

originalQuery: string

The original query that was submitted by the user.

wasQueryModified: boolean

Whether the original query was modified by a trigger rule in the query pipeline.