Skip to main content

Interface: SchemaConfig<M>

You can add these additional props to override properties in a SchemaResolver

Type parameters#

NameType
MM = any

Properties#

callbacks#

Optional callbacks: EntityCallbacks<M>

This interface defines all the callbacks that can be used when an entity is being created, updated or deleted. Useful for adding your own logic or blocking the execution of the operation

Defined in#

models/schema_resolver.ts:32


permissions#

Optional permissions: PermissionsBuilder<any>

Can the elements in this collection be added and edited.

Defined in#

models/schema_resolver.ts:14


schema#

schema: EntitySchema<M>

Schema representing the entities of this view

Defined in#

models/schema_resolver.ts:19


subcollections#

Optional subcollections: EntityCollection<any, string>[]

You can add subcollections to your entity in the same way you define the root collections.

Defined in#

models/schema_resolver.ts:25