# Interface: VersionExpr\<B\>

Defined in: [packages/core/src/records/contract-builder.ts:172](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L172)

A version: the one before, or one cited

## Extends

- [`CelExpr`](https://minca.dev/api/core/interfaces/CelExpr.md)\<[`Cited`](https://minca.dev/api/core/interfaces/Cited.md)\<`B`\>\>

## Type Parameters

| Type Parameter |
| ------ |
| <a id="type-parameter-b"></a> `B` |

## Properties

| Property | Modifier | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ | ------ |
| <a id="property-cel"></a> `~cel` | `readonly` | `Built` | - | [`CelExpr`](https://minca.dev/api/core/interfaces/CelExpr.md).[`~cel`](https://minca.dev/api/core/interfaces/CelExpr.md#property-cel) | [packages/core/src/records/contract-builder.ts:41](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L41) |
| <a id="property-t"></a> `~t?` | `readonly` | [`Cited`](https://minca.dev/api/core/interfaces/Cited.md)\<`B`\> | - | [`CelExpr`](https://minca.dev/api/core/interfaces/CelExpr.md).[`~t`](https://minca.dev/api/core/interfaces/CelExpr.md#property-t) | [packages/core/src/records/contract-builder.ts:42](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L42) |
| <a id="property-author"></a> `author` | `readonly` | [`StrExpr`](https://minca.dev/api/core/interfaces/StrExpr.md) | Its account | - | [packages/core/src/records/contract-builder.ts:178](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L178) |
| <a id="property-body"></a> `body` | `readonly` | [`Expr`](https://minca.dev/api/core/type-aliases/Expr.md)\<`B`\> | - | - | [packages/core/src/records/contract-builder.ts:181](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L181) |
| <a id="property-collection"></a> `collection` | `readonly` | [`StrExpr`](https://minca.dev/api/core/interfaces/StrExpr.md) | - | - | [packages/core/src/records/contract-builder.ts:175](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L175) |
| <a id="property-createdat"></a> `createdAt` | `readonly` | [`StrExpr`](https://minca.dev/api/core/interfaces/StrExpr.md) | - | - | [packages/core/src/records/contract-builder.ts:179](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L179) |
| <a id="property-deleted"></a> `deleted` | `readonly` | [`BoolExpr`](https://minca.dev/api/core/interfaces/BoolExpr.md) | - | - | [packages/core/src/records/contract-builder.ts:180](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L180) |
| <a id="property-id"></a> `id` | `readonly` | [`StrExpr`](https://minca.dev/api/core/interfaces/StrExpr.md) | - | - | [packages/core/src/records/contract-builder.ts:173](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L173) |
| <a id="property-key"></a> `key` | `readonly` | [`StrExpr`](https://minca.dev/api/core/interfaces/StrExpr.md) | - | - | [packages/core/src/records/contract-builder.ts:174](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L174) |
| <a id="property-links"></a> `links` | `readonly` | [`ListExpr`](https://minca.dev/api/core/interfaces/ListExpr.md)\<`LinkValue`\> | - | - | [packages/core/src/records/contract-builder.ts:182](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L182) |
| <a id="property-seq"></a> `seq` | `readonly` | [`IntExpr`](https://minca.dev/api/core/interfaces/IntExpr.md) | - | - | [packages/core/src/records/contract-builder.ts:176](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L176) |

## Methods

### eq()

```ts
eq(other): BoolExpr;
```

Defined in: [packages/core/src/records/contract-builder.ts:188](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L188)

`prev == null`: the version before, on a first version

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `other` | `null` |

#### Returns

[`BoolExpr`](https://minca.dev/api/core/interfaces/BoolExpr.md)

***

### link()

```ts
link(rel): StrExpr;
```

Defined in: [packages/core/src/records/contract-builder.ts:184](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L184)

`v.link(rel)`: what its first link with that role points at, or null

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `rel` | `string` |

#### Returns

[`StrExpr`](https://minca.dev/api/core/interfaces/StrExpr.md)

***

### ne()

```ts
ne(other): BoolExpr;
```

Defined in: [packages/core/src/records/contract-builder.ts:189](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L189)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `other` | `null` |

#### Returns

[`BoolExpr`](https://minca.dev/api/core/interfaces/BoolExpr.md)

***

### of()

```ts
of<C>(collection): VersionExpr<BodyIn<C>>;
```

Defined in: [packages/core/src/records/contract-builder.ts:186](https://github.com/leifriksheim/minca/blob/main/core/src/records/contract-builder.ts#L186)

Typed as a version of `collection`. A promise, not a check

#### Type Parameters

| Type Parameter |
| ------ |
| <a id="type-parameter-c"></a> `C` *extends* `object` |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `collection` | `C` |

#### Returns

`VersionExpr`\<`BodyIn`\<`C`\>\>
