> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# instance.query()

> Public low-code contract, signatures and examples for instance.query.

## `instance.query()`

Executes one parameterized SQL SELECT/WITH in a read-only transaction.
Requires INSTANCE\_ADMIN on the effective executor. Use select for queries governed by source ACLs.

### Signature

```ts theme={null}
static query(sql: string, params?: any[]): Promise<any>;
```

### Example

```ts theme={null}
const rows = await instance.query('SELECT CAST($1 AS integer) AS value', [42]);
```

See [all instance methods](https://docs.revoengine.com/low-code/reference/instance.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.