# Function: useSchemas()

```ts
function useSchemas(
   node, 
   spaceId, 
   schemas
): Promise<void>;
```

Defined in: [packages/core/src/schemas/index.ts:109](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/index.ts#L109)

Makes sure a space knows these collections: defines the ones it has no
definition for, and leaves the rest alone — so calling it every time a
space opens is fine, and it never bumps a definition someone else owns.
A space you cannot write in is skipped.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`P2PNode`](https://minca.dev/api/core/interfaces/P2PNode.md) |
| `spaceId` | `string` |
| `schemas` | readonly [`DefineCollection`](https://minca.dev/api/core/interfaces/DefineCollection.md)[] |

## Returns

`Promise`\<`void`\>
