# Type Alias: BodyOf\<C\>

```ts
type BodyOf<C> = C extends object ? unknown extends T ? FromSchema<C> : T : FromSchema<C>;
```

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

The body type of a collection reference: declared with [Typed](https://minca.dev/api/core/interfaces/Typed.md), or
the output of its definition's validator. `unknown` for a bare name.

## Type Parameters

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