SerializeOptions <T, P, E, F>
Index
Properties
optionalconvertCustomTypes
optionalexclude
Specify which properties should be omitted.
optionalfields
Whitelist of properties to serialize, supports dot-paths (e.g. ['name', 'books.title']). When set, only the
listed properties end up in the output, including primary keys. A bare property name keeps its entire sub-tree;
a dot-path additionally narrows the nested object to the listed sub-keys. exclude takes precedence on conflict.
optionalforceObject
Enforce unpopulated references to be returned as objects, e.g. { author: { id: 1 } } instead of { author: 1 }.
optionalgroups
Only include properties for a specific group. If a property does not specify any group, it will be included, otherwise only properties with a matching group are included.
optionalignoreSerializers
Ignore custom property serializers.
optionalincludeHidden
Include properties marked as hidden.
optionalpopulate
Specify which relation should be serialized as populated and which as a FK.
optionalskipNull
Skip properties with null value.
Convert custom types to their database representation. By default, the
Type.toJSONmethod is invoked instead.