# createRestExecutor (/docs/rest/api/functions/createRestExecutor)



[@kysoql/rest](/docs/rest/api) / createRestExecutor

```ts
function createRestExecutor(client, options?): RestExecutor;
```

Creates a Kysoql query executor around a RestClient.

## Parameters [#parameters]

| Parameter | Type                                                                                                                          |
| --------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `client`  | \| [`RestClientOptions`](/docs/rest/api/interfaces/RestClientOptions) \| [`RestClient`](/docs/rest/api/interfaces/RestClient) |
| `options` | [`RestPaginationOptions`](/docs/rest/api/interfaces/RestPaginationOptions)                                                    |

## Returns [#returns]

[`RestExecutor`](/docs/rest/api/interfaces/RestExecutor)
