Skip to main content
Version: Next

Class: MetadataDiscovery

core.MetadataDiscovery

Constructors#

constructor#

new MetadataDiscovery(metadata, platform, config)

Parameters#

NameType
metadataMetadataStorage
platformPlatform
configConfiguration<IDatabaseDriver<Connection>>

Defined in#

packages/core/src/metadata/MetadataDiscovery.ts:24

Methods#

discover#

discover(preferTsNode?): Promise<MetadataStorage>

Parameters#

NameTypeDefault value
preferTsNodebooleantrue

Returns#

Promise<MetadataStorage>

Defined in#

packages/core/src/metadata/MetadataDiscovery.ts:30


discoverReferences#

discoverReferences(refs): Promise<EntityMetadata<any>[]>

Parameters#

NameType
refsConstructor<AnyEntity<any>>[]

Returns#

Promise<EntityMetadata<any>[]>

Defined in#

packages/core/src/metadata/MetadataDiscovery.ts:141


processDiscoveredEntities#

processDiscoveredEntities(discovered): EntityMetadata<any>[]

Parameters#

NameType
discoveredEntityMetadata<any>[]

Returns#

EntityMetadata<any>[]

Defined in#

packages/core/src/metadata/MetadataDiscovery.ts:48