ApiCoreInterfaces
Interface: SchemaEngine
Defined in: packages/core/src/schema/schema-engine.ts:9
The collections a node was given in code, each with its Standard Schema validator.
Methods
getCollection()
getCollection(name): CollectionDef | undefined;Defined in: packages/core/src/schema/schema-engine.ts:11
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
CollectionDef | undefined
registerCollection()
registerCollection(def): void;Defined in: packages/core/src/schema/schema-engine.ts:10
Parameters
| Parameter | Type |
|---|---|
def | CollectionDef |
Returns
void
validate()
validate(collection, data): Promise<ValidationResult>;Defined in: packages/core/src/schema/schema-engine.ts:12
Parameters
| Parameter | Type |
|---|---|
collection | string |
data | unknown |
Returns
Promise<ValidationResult>