Class Formatter

Every query resolving gets its own formatter.

Hierarchy

  • Formatter

Constructors

Properties

deserialize: SerializeFunction
hydrator?: HydratorFn
identityMap?: IdentityMap
instancePools: Map<ClassType<any>, Map<string, any>> = ...
partialDeserialize: SerializeFunction
referenceClasses: Map<ReflectionClass<any>, ClassType<any>> = ...
rootClassSchema: ReflectionClass<any>
rootClassState: ClassState<any> = ...
rootPkHash: ((value: any) => string) = ...

Type declaration

    • (value: any): string
    • Parameters

      • value: any

      Returns string

serializer: Serializer
withIdentityMap: boolean = true

Methods

  • Parameters

    • model: DatabaseQueryModel<any, any, any>
    • classSchema: ReflectionClass<any>
    • dbRecord: DBRecord
    • item: any

    Returns {
        [name: string]: true;
    }

    • [name: string]: true
  • Parameters

    • classType: ClassType<any>

    Returns Map<string, any>

  • Parameters

    • classSchema: ReflectionClass<any>
    • dbRecord: DBRecord
    • propertySchema: ReflectionProperty
    • isPartial: boolean

    Returns undefined | null | object

  • Type Parameters

    • T

    Parameters

    • classSchema: ReflectionClass<T>

    Returns ClassType<T>

  • Parameters

    • item: any
    • classSchema: ReflectionClass<any>
    • propertySchema: ReflectionProperty

    Returns void

Generated using TypeDoc