Page Contents

Home > @loopback/repository > ModelSettings

ModelSettings interface

Defining the settings for a model See


export interface ModelSettings 


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