@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
47 lines (31 loc) • 1.62 kB
Markdown
lang: en
title: 'API docs: boot.modelbooter'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/boot
permalink: /doc/en/lb4/apidocs.boot.modelbooter.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/boot](./boot.md) > [ModelBooter](./boot.modelbooter.md)
## ModelBooter class
A class that extends BaseArtifactBooter to boot the 'Model' artifact type.
Supported phases: configure, discover, load
<b>Signature:</b>
```typescript
export declare class ModelBooter extends BaseArtifactBooter
```
<b>Extends:</b> [BaseArtifactBooter](./boot.baseartifactbooter.md)
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(app, projectRoot, modelConfig)](./boot.modelbooter._constructor_.md) | | Constructs a new instance of the <code>ModelBooter</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [app](./boot.modelbooter.app.md) | | [ApplicationWithRepositories](./repository.applicationwithrepositories.md) | |
| [modelConfig](./boot.modelbooter.modelconfig.md) | | [ArtifactOptions](./boot.artifactoptions.md) | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [load()](./boot.modelbooter.load.md) | | Uses super method to get a list of Artifact classes. Boot each file by creating a DataSourceConstructor and binding it to the application class. |