Function getModelWithString

  • Get Model from internal cache

    Type Parameters

    Parameters

    • key: string

      Model's name key

    Returns undefined | ReturnModelType<U, QueryHelpers>

    Example

    class ClassName {}
    getModelForClass(ClassName); // build the model
    const NameModel = getModelWithString<typeof ClassName>("ClassName");

Generated using TypeDoc