---
lang: en
title: 'API docs: repository.executablerepository.execute'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.executablerepository.execute.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [ExecutableRepository](./repository.executablerepository.md) &gt; [execute](./repository.executablerepository.execute.md)

## ExecutableRepository.execute() method

Execute a query with the given parameter object or an array of parameters

<b>Signature:</b>

```typescript
execute(command: Command, parameters: NamedParameters | PositionalParameters, options?: Options): Promise<AnyObject>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  command | <code>Command</code> | The query string or command object |
|  parameters | <code>NamedParameters &#124; PositionalParameters</code> | The object with name/value pairs or an array of parameter values |
|  options | <code>Options</code> | Options |

<b>Returns:</b>

`Promise<AnyObject>`


