Page Contents

Home > @loopback/repository > ModelSettings

ModelSettings interface

Defining the settings for a model See https://loopback.io/doc/en/lb4/Model.html#supported-entries-of-model-definition

Signature:

export interface ModelSettings 

Properties

Property Type Description
description string Description of the model
forceId boolean Prevent clients from setting the auto-generated ID value manually
hiddenProperties string[] Hides properties from response bodies
scope object Scope enables you to set a scope that will apply to every query made by the model’s repository
strict boolean | ‘filter’ Specifies whether the model accepts only predefined properties or not