> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.EntityQuery.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface EntityQuery

```typescript
interface EntityQuery {
    cursor?: string | null;
    includeDeleted?: boolean;
    limit?: number;
    orderBy?:
        | { direction?: "asc"
        | "desc"; field: string }
        | { direction?: "asc" | "desc"; field: string }[];
    where?: EntityWhere;
}
```

Types: [cursor](#cursor), [includeDeleted](#includedeleted), [limit](#limit), [orderBy](#orderby), [where](#where), [EntityWhere](core.Supporting_types.EntityWhere.md)

##### Index

### <a id="properties"></a>Properties

[cursor?](#cursor) [includeDeleted?](#includedeleted) [limit?](#limit) [orderBy?](#orderby) [where?](#where)

## <a id="properties-1"></a>Properties

### <a id="cursor"></a>`Optional`cursor

```typescript
cursor?: string | null
```

### <a id="includedeleted"></a>`Optional`includeDeleted

```typescript
includeDeleted?: boolean
```

### <a id="limit"></a>`Optional`limit

```typescript
limit?: number
```

### <a id="orderby"></a>`Optional`orderBy

```typescript
orderBy?:
    | { direction?: "asc"
    | "desc"; field: string }
    | { direction?: "asc" | "desc"; field: string }[]
```

### <a id="where"></a>`Optional`where

```typescript
where?: EntityWhere
```

Types: [EntityWhere](core.Supporting_types.EntityWhere.md)
