# setQuery

Passes query conditions to the processing engine. Review GridQuery and support in the active row model.

Canonical: https://grid.syidax.com/docs/methods/setQuery/

<a id="meaning"></a>

## What does this API do?

Passes query conditions to the processing engine. Review GridQuery and support in the active row model.

<a id="contract"></a>

## Exact input and result types

```typescript
setQuery(query: string): Promise<void>
```

| Arguments | Required | Type |
| --- | --- | --- |
| query | Required | string |

The return type is `Promise<void>`.

<a id="usage"></a>

## Usage flow

After registering and initializing the Grid element, call grid.setQuery(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

<a id="recipes"></a>

## Feature explanations and examples

- [JavaScript processing engine](https://grid.syidax.com/docs/features/js-processing.md) — The JavaScript engine is the standard browser execution path for sorting, filtering, and processing table data. Use it as a straightforward starting point for checking deployment environments and feature combinations.
