minca
ApiSchemasFunctions

Function: useSchemas()

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

Defined in: packages/core/src/schemas/index.ts:109

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

ParameterType
nodeP2PNode
spaceIdstring
schemasreadonly DefineCollection[]

Returns

Promise<void>

On this page