---
jsApi: true
title: "[F] $query"

---
```ts
$query(
   context, 
   entity, 
   queryNameOrOptions?): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `entity` | `ModelProperty` |
| `queryNameOrOptions`? | `StringLiteral` \| `Model` |

## Returns

`void`
