# Function: checkQuery()

```ts
function checkQuery(query): string | null;
```

Defined in: [packages/core/src/query/filter.ts:263](https://github.com/leifriksheim/minca/blob/main/core/src/query/filter.ts#L263)

Why a query cannot run, or null when it can. Queries are data; functions and unknown operators are refused.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `query` | `unknown` |

## Returns

`string` \| `null`
