The model.discriminator() function Discriminators are a schema inheritance mechanism. They enable you to have multiple models with overlapping schemas on t...
Connection.prototype.model() Parameters Returns: Example: Connection.prototype.model() Parameters name «String|Function» the model name or class extending Model [schem...
SchemaType.prototype.ref() Parameters Returns: Example: SchemaType.prototype.ref() Parameters ref «String|Model|Function» either a model name, a Model , or a function th...
Model() Parameters Inherits: Example: Model() Parameters doc «Object» values for initial set optional «[fields]» object containing the fields that were selected in the...