Skip to main content

Interface: EntityOptions

Defined in: service-core/src/decorators/PersistenceDecorators.ts:47

The set of options to use when declaring a persistent class type via the @Entity decorator.

Properties

collation?

optional collation?: CollationOptions

Defined in: service-core/src/decorators/PersistenceDecorators.ts:52

The language-specific collation rules to apply to the collection. (MongoDB only)


name?

optional name?: string

Defined in: service-core/src/decorators/PersistenceDecorators.ts:50

The name of the collection (or table) that records will be stored in. Defaults to the snake_case form of the class name.