The class that Mongoose uses internally to instantiate this SchemaType's options property.
Default options for this SchemaType
String representation of what type this is, like 'ObjectID' or 'Number'
Optional isTrue if this SchemaType has a required validator. False otherwise.
The options this SchemaType was instantiated with
The path to this SchemaType in a Schema.
The schema this SchemaType instance is part of
The validators that Mongoose should run to validate properties at this SchemaType's path.
Static schemaThis schema type's name, to defend against minifiers that mangle function names.
Defines this path as immutable. Mongoose prevents you from changing
immutable paths unless the parent document has isNew: true.
Adds a lowercase setter.
Optional shouldApply: booleanSet the model that this path refers to. This is the option that populate looks at to determine the foreign collection it should query.
Adds a trim setter.
Optional shouldTrim: booleanAdds an uppercase setter.
Optional shouldApply: booleanStatic castStatic checkStatic getStatic set
SchemaType constructor