MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / default

Method default

packages/core/src/entity/defineEntity.ts:135–135  ·  view source on GitHub ↗
(
    defaultValue: string | string[] | number | number[] | boolean | null | Date | Raw,
  )

Source from the content-addressed store, hash-verified

133 onCreate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>,
134 ): PropertyChain<Value, Options & { onCreate: (...args: any[]) => any }>;
135 default(
136 defaultValue: string | string[] | number | number[] | boolean | null | Date | Raw,
137 ): PropertyChain<Value, Omit<Options, 'default'> & { default: any }>;
138 defaultRaw(defaultRaw: string): PropertyChain<Value, Options & { defaultRaw: string }>;

Calls

no outgoing calls

Tested by

no test coverage detected