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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.omni.co/feedback

```json
{
  "path": "/modeling/query-views/parameters/limit",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# limit

> Defines the row limit of the query if a limit is set on the query in the workbook.

Defines the row limit of the query if a limit is set on the query in the workbook.

## Syntax

```yaml theme={null}
limit: <limit_value>
```

## Properties

<ParamField path="query" type="object[]">
  An object containing the individual parameters that make up a query view's query definition.

  <Expandable title="query properties" defaultOpen="true">
    <ParamField path="limit" type="number">
      The maximum number of rows to return in the query.
    </ParamField>
  </Expandable>
</ParamField>

## Examples

```yaml title="Top ten users by spend" highlight={9} theme={null}
query:
  fields:
    users.id: id
    order_items.sale_price_sum: sales
  base_view: order_items
  sorts:
    - field: order_items.sale_price_sum
      desc: true
  limit: 10
```
