# Interface: QueryRecord\<T, I, C\>

Defined in: [packages/core/src/query/types.ts:161](https://github.com/leifriksheim/minca/blob/main/core/src/query/types.ts#L161)

A record a query found. Queries only return records this device can read,
so `body` is never null here.

## Extends

- `Omit`\<[`NodeRecord`](https://minca.dev/api/core/interfaces/NodeRecord.md)\<`T`\>, `"body"`\>

## Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| <a id="type-parameter-t"></a> `T` | `unknown` |
| <a id="type-parameter-i"></a> `I` | `AnyIncluded` |
| <a id="type-parameter-c"></a> `C` | [`ComputedValues`](https://minca.dev/api/core/type-aliases/ComputedValues.md) |

## Properties

| Property | Modifier | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ | ------ |
| <a id="property-author"></a> `author` | `readonly` | `string` | The key that signed this version, usually an app's session key, not the person: show `root` or `createdBy` as the author | `Omit.author` | [packages/core/src/node/types.ts:272](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L272) |
| <a id="property-body"></a> `body` | `readonly` | `T` | Never null: a query leaves out records this node can't open | - | [packages/core/src/query/types.ts:166](https://github.com/leifriksheim/minca/blob/main/core/src/query/types.ts#L166) |
| <a id="property-collection"></a> `collection` | `readonly` | `string` | - | `Omit.collection` | [packages/core/src/node/types.ts:270](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L270) |
| <a id="property-computed"></a> `computed` | `readonly` | `C` | Its collection's computed fields, derived from what this node holds (packages/core/docs/computed.md). Empty when the collection has none. | - | [packages/core/src/query/types.ts:173](https://github.com/leifriksheim/minca/blob/main/core/src/query/types.ts#L173) |
| <a id="property-conforms"></a> `conforms` | `readonly` | `boolean` \| `null` | Whether the body fits its collection's schema; null when there is none or it can't be opened. A misfit still syncs. | `Omit.conforms` | [packages/core/src/node/types.ts:294](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L294) |
| <a id="property-createdat"></a> `createdAt` | `readonly` | `string` | When it was created, by its creator's clock: for display only | `Omit.createdAt` | [packages/core/src/node/types.ts:278](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L278) |
| <a id="property-createdby"></a> `createdBy` | `readonly` | `string` \| `null` | The identity that created the record, when its first version is held | `Omit.createdBy` | [packages/core/src/node/types.ts:276](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L276) |
| <a id="property-deleted"></a> `deleted?` | `readonly` | `true` | This version deletes the record (listed only with `includeDeleted`) | `Omit.deleted` | [packages/core/src/node/types.ts:292](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L292) |
| <a id="property-encrypted"></a> `encrypted` | `readonly` | `boolean` | - | `Omit.encrypted` | [packages/core/src/node/types.ts:285](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L285) |
| <a id="property-included"></a> `included` | `readonly` | `I` | What each `include` found: records, or a number when it asked for a count. Empty without `include`. | - | [packages/core/src/query/types.ts:168](https://github.com/leifriksheim/minca/blob/main/core/src/query/types.ts#L168) |
| <a id="property-issues"></a> `issues?` | `readonly` | readonly [`SchemaIssue`](https://minca.dev/api/core/interfaces/SchemaIssue.md)[] | - | `Omit.issues` | [packages/core/src/node/types.ts:295](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L295) |
| <a id="property-key"></a> `key` | `readonly` | `string` | The record's identity, the same across edits; links point here | `Omit.key` | [packages/core/src/node/types.ts:264](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L264) |
| <a id="property-links"></a> `links` | `readonly` | readonly [`Link`](https://minca.dev/api/core/interfaces/Link.md)[] | What this record points at; empty when it can't be opened | `Omit.links` | [packages/core/src/node/types.ts:284](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L284) |
| <a id="property-reason"></a> `reason?` | `readonly` | `string` | - | `Omit.reason` | [packages/core/src/node/types.ts:290](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L290) |
| <a id="property-recordsonly"></a> `recordsOnly?` | `readonly` | `true` | Signed under a note that grants writing records and no more: an app running records as code trusts only versions without it | `Omit.recordsOnly` | [packages/core/src/node/types.ts:289](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L289) |
| <a id="property-root"></a> `root` | `readonly` | `string` \| `null` | The identity that key was acting for, when its delegation checks out | `Omit.root` | [packages/core/src/node/types.ts:274](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L274) |
| <a id="property-seq"></a> `seq` | `readonly` | `number` | 0 for the first version, one more for each edit | `Omit.seq` | [packages/core/src/node/types.ts:268](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L268) |
| <a id="property-space"></a> `space` | `readonly` | `string` | - | `Omit.space` | [packages/core/src/node/types.ts:269](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L269) |
| <a id="property-updatedat"></a> `updatedAt` | `readonly` | `string` | When this version was written: for display only | `Omit.updatedAt` | [packages/core/src/node/types.ts:280](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L280) |
| <a id="property-verified"></a> `verified` | `readonly` | `boolean` | Signature, delegation and shape all check out | `Omit.verified` | [packages/core/src/node/types.ts:287](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L287) |
| <a id="property-version"></a> `version` | `readonly` | `string` | This version's id: a content hash | `Omit.version` | [packages/core/src/node/types.ts:266](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L266) |
