# LegacyAdaptableQuery

Canonical page: https://www.adaptabletools.com/docs/reference/legacyadaptablequery

Pre-v25 expression wrapper as it appears in persisted state. Until v24 a
`Rule` / `Query` was an object whose single key named the expression kind
(`Expression` / `AggregatedExpression` / `ObservableExpression`, plus the
pre-v24 spellings). From v25 the property is the expression string itself
and the kind is inferred from the text; `CalculatedColumn.Query` and
`Report.Query` are renamed to `Expression`.

```ts title="TypeScript"
export interface LegacyAdaptableQuery 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [AggregatedExpression](https://www.adaptabletools.com/docs/reference/legacyadaptablequery.md#aggregatedexpression) | `string` | Aggregated expression text (a brace call). Current state stores the string directly; the kind is inferred. |
| [Expression](https://www.adaptabletools.com/docs/reference/legacyadaptablequery.md#expression) | `string` | Per-row expression text. Current state stores this string directly on `Rule` or `Expression`. |
| [ObservableExpression](https://www.adaptabletools.com/docs/reference/legacyadaptablequery.md#observableexpression) | `string` | Observable expression text. Current state stores the string directly and treats it as a scalar expression. |

## Property Details

### AggregatedBooleanExpression

Older name for .

```ts title="TypeScript"
AggregatedBooleanExpression?: string;
```

###### Deprecated

pre-v24 spelling of `AggregatedExpression`

###### Property Value

`string`

### AggregatedExpression

Aggregated expression text (a brace call). Current state stores the string directly; the kind is inferred.

```ts title="TypeScript"
AggregatedExpression?: string;
```

###### Property Value

`string`

### AggregatedScalarExpression

Older name for .

```ts title="TypeScript"
AggregatedScalarExpression?: string;
```

###### Deprecated

pre-v24 spelling of `AggregatedExpression`

###### Property Value

`string`

### BooleanExpression

Older name for .

```ts title="TypeScript"
BooleanExpression?: string;
```

###### Deprecated

pre-v24 spelling of `Expression`

###### Property Value

`string`

### Expression

Per-row expression text. Current state stores this string directly on `Rule` or `Expression`.

```ts title="TypeScript"
Expression?: string;
```

###### Property Value

`string`

### ObservableExpression

Observable expression text. Current state stores the string directly and treats it as a scalar expression.

```ts title="TypeScript"
ObservableExpression?: string;
```

###### Property Value

`string`

### ScalarExpression

Older name for .

```ts title="TypeScript"
ScalarExpression?: string;
```

###### Deprecated

pre-v24 spelling of `Expression`

###### Property Value

`string`
