Skip to main content
Version: 6.1

SerializeOptions <T, P, E>

Index

Properties

optionalexclude

exclude?: readonly AutoPath<T, E, never, 9>[]

Specify which properties should be omitted.

optionalforceObject

forceObject?: boolean

Enforce unpopulated references to be returned as objects, e.g. { author: { id: 1 } } instead of { author: 1 }.

optionalignoreSerializers

ignoreSerializers?: boolean

Ignore custom property serializers.

optionalpopulate

populate?: readonly AutoPath<T, P, *, 9>[]

Specify which relation should be serialized as populated and which as a FK.

optionalskipNull

skipNull?: boolean

Skip properties with null value.