Add typePojoToMixed to mongoose SchemaOptions (#41290)

This commit is contained in:
Grimmer
2019-12-31 15:22:45 -08:00
committed by Ryan Cavanaugh
parent 74fa9e11a4
commit 6202437f4f
+5
View File
@@ -1032,6 +1032,11 @@ declare module "mongoose" {
* assigned is Date.
*/
timestamps?: boolean | SchemaTimestampsConfig;
/**
* Determines whether a type set to a POJO becomes
* a Mixed path or a Subdocument (defaults to true).
*/
typePojoToMixed?:boolean;
}
interface SchemaTimestampsConfig {