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 | 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 |