Page Contents

Home > @loopback/repository > ModelSettings

ModelSettings interface

Defining the settings for a model See


export interface ModelSettings 


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