This article is for LoopBack 2.x, which is no longer supported. Please see the corresponding article for 3.x.

Defining models

Edit this page
Models are at the heart of LoopBack, and represent back-end data sources such as databases or other back-end services (REST, SOAP, and so on).

Prerequisite: Install command-line tools as described in Installation.

Recommended: Read LoopBack core concepts.

Page Contents

A LoopBack model represents data in backend systems such as databases, and by default has both Node and REST APIs. Additionally, you can add functionality such as validation rules and business logic to models.

Every LoopBack application has a set of predefined built-in models such as User, Role, and Application. You can extend built-in models to suit your application’s needs.

Additionally, you can define your own custom models specific to your application:

Tags: models

AltStyle によって変換されたページ (->オリジナル) /