# Function: plainQuery()

```ts
function plainQuery<C, I>(typed): Query;
```

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

The query as plain data: every collection reference replaced by its name.
What runs, what is sent to an agent, and what is compared, is this.
Anything malformed is passed through untouched, for the checker to explain.

## Type Parameters

| Type Parameter |
| ------ |
| <a id="type-parameter-c"></a> `C` *extends* [`CollectionRef`](https://minca.dev/api/core/type-aliases/CollectionRef.md) |
| <a id="type-parameter-i"></a> `I` *extends* \| `Readonly`\<`Record`\<`string`, [`Include`](https://minca.dev/api/core/interfaces/Include.md)\>\> \| `undefined` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `typed` | [`Query`](https://minca.dev/api/core/interfaces/Query.md)\<`C`, `I`\> |

## Returns

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