Skip to main content

Utilities

getSchemaOf#

Returns the mongoose schema for the provided Model / Resource. [Link]

getDiscriminatorKeyFor#

Returns the discriminator key for the provided Model / Resource. Only valid for discriminator implementation, thr base class will not yield a value. [Link]

getDiscriminatorKeysOf#

Returns the discriminator keys for the provided Model / Resource. [Link]

findModels#

Return all Models / Resources registered in GooseTyped. [Link]

getEnum#

Returns the list of enums registered for a path in a Model / Resource. [Link]