SerializeOptions | mongodb (original) (raw)
Interface SerializeOptions
interface SerializeOptions {
checkKeys?: boolean;
ignoreUndefined?: boolean;
index?: number;
serializeFunctions?: boolean;
}
Index
Properties
checkKeys? ignoreUndefined? index? serializeFunctions?
Properties
Optional
checkKeys
checkKeys?: boolean
the serializer will check if keys are valid.
Default Value
false
Optional
ignoreUndefined
ignoreUndefined?: boolean
serialize will not emit undefined fields note that the driver sets this to false
Default Value
true
Optional
index
index?: number
the index in the buffer where we wish to start serializing into
Default Value
0
Optional
serializeFunctions
serializeFunctions?: boolean
serialize the javascript functions
Default Value
false