Skip to main content
Version: 1.0.0

Type alias: SchemaOverride<M, UserType>

Ƭ SchemaOverride<M, UserType>: Object

You can return these parameters to override properties in a SchemaOverrideHandler. Useful if you want to apply schemas to specific entities.

Type parameters

NameType
Many
UserTypeUser

Type declaration

NameTypeDescription
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
permissions?PermissionsBuilder<M, UserType>Can the elements in this collection be added and edited.
schema?EntitySchema<M>Schema representing the entities of this view
subcollections?EntityCollection[]You can add subcollections to your entity in the same way you define the root collections.

Defined in

models/schema_override.ts:22