---
url: /nestjs-odata/api/generated/interfaces/ODataGetOptions.md
---
# Interface: ODataGetOptions

Defined in: [decorators/odata-get.decorator.ts:9](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/decorators/odata-get.decorator.ts#L9)

Options for the @ODataGet() decorator.

## Properties

### autoHandler?

> `optional` **autoHandler?**: `boolean`

Defined in: [decorators/odata-get.decorator.ts:17](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/decorators/odata-get.decorator.ts#L17)

When true, signals the auto-handler mechanism (wired in Plan 04 by the typeorm module)
to replace the decorated method body with a generated handler.
Default: false

***

### path?

> `optional` **path?**: `string`

Defined in: [decorators/odata-get.decorator.ts:11](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/decorators/odata-get.decorator.ts#L11)

Custom route path. Defaults to '' (empty, NestJS will use the controller prefix).
