Interface: CallableEntitySchemaWeaver()<TSchemaIO>

Type Parameters

TSchemaIO extends AbstractSchemaIO

CallableEntitySchemaWeaver<TSilk>(silk, options?): EntitySilk<SilkSchemaEntity<TSilk, TSchemaIO>>

Type Parameters

TSilk extends object

Parameters

silk: TSilk

options?: Partial<EntitySchemaMetadata<SilkSchemaEntity<TSilk, TSchemaIO>>> & EntitySchemaWeaverOptions

Returns

EntitySilk<SilkSchemaEntity<TSilk, TSchemaIO>>

Defined in

packages/mikro-orm/src/entity-schema.ts:253

Properties

withRelations()

withRelations: <TSilk, TRelations>(silk, relations, options?) => EntitySilk<SilkSchemaEntityWithRelations<TSchemaIO, TSilk, TRelations>>

Type Parameters

TSilk extends object

TRelations extends Record<string, RelationProperty<any, InferSchemaO<TSilk, TSchemaIO>>> = never

Parameters

silk: TSilk

relations: TRelations

options?: Partial<EntitySchemaMetadata<SilkSchemaEntityWithRelations<TSchemaIO, TSilk, TRelations>>> & EntitySchemaWeaverOptions

Returns

EntitySilk<SilkSchemaEntityWithRelations<TSchemaIO, TSilk, TRelations>>

Defined in

packages/mikro-orm/src/entity-schema.ts:261