Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EntitySchema

Hierarchy

  • EntitySchema

Index

Constructors

constructor

  • Parameters

    • proto: Object

    Returns EntitySchema

Properties

Optional collectionName

collectionName: undefined | string

constructorParamNames

constructorParamNames: string[] = []

constructorParamNamesAutoResolved

constructorParamNamesAutoResolved: string[] = []

Optional databaseName

databaseName: undefined | string

Optional decorator

decorator: undefined | string

Optional idField

idField: undefined | string

indices

indices: EntityIndex[] = []

Optional name

name: undefined | string

onLoad

onLoad: object[] = []

properties

properties: object

Type declaration

propertyNames

propertyNames: string[] = []

proto

proto: Object

Methods

getDecoratedPropertySchema

getIndex

  • Parameters

    • name: string

    Returns EntityIndex | undefined

getOrCreateProperty

  • Parameters

    • name: string

    Returns PropertySchema

getProperty

  • Parameters

    • name: string

    Returns PropertySchema

getPropertyOrUndefined

  • Parameters

    • name: string

    Returns PropertySchema | undefined

hasProperty

  • hasProperty(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

Generated using TypeDoc