Skip to main content

goosetyped.getschemaof

Home > @pebula/goosetyped > getSchemaOf

getSchemaOf() function#

Returns the mongoose schema for the provided Model / Resource

Signature:
export declare function getSchemaOf<T>(modelClass: Ctor<T>): Schema | undefined;

Parameters#

ParameterTypeDescription
modelClassCtor<T>
Returns:

Schema | undefined