SerializeOptions | mongodb (original) (raw)

Interface SerializeOptions

interface SerializeOptions {
checkKeys?: boolean;
ignoreUndefined?: boolean;
index?: number;
serializeFunctions?: boolean;
}

Index

Properties

checkKeys? ignoreUndefined? index? serializeFunctions?

Properties

OptionalcheckKeys

checkKeys?: boolean

the serializer will check if keys are valid.

Default Value

false

OptionalignoreUndefined

ignoreUndefined?: boolean

serialize will not emit undefined fields note that the driver sets this to false

Default Value

true

Optionalindex

index?: number

the index in the buffer where we wish to start serializing into

Default Value

0

OptionalserializeFunctions

serializeFunctions?: boolean

serialize the javascript functions

Default Value

false