Indicates that this field is only need to putted in the serialized json or deserialized instance, without any transformations. Stay with its original value
createModelSchema(Model, { rawData: raw(),})serialize(new Model({ rawData: { a: 1, b: [], c: {} } } }))// { "rawData": { a: 1, b: [], c: {} } } }
Optional
optional object that contains beforeDeserialize and/or afterDeserialize handlers
Generated using TypeDoc
Indicates that this field is only need to putted in the serialized json or deserialized instance, without any transformations. Stay with its original value
Example