Page Contents
Home > @loopback/repository > rejectNavigationalPropertiesInData
rejectNavigationalPropertiesInData() function
Check model data for navigational properties linking to related models. Throw a descriptive error if any such property is found.
Signature:
export declare function rejectNavigationalPropertiesInData<M extends typeof Entity>(modelClass: M, data: DataObject<PrototypeOf<M>>): void;
Parameters
Parameter | Type | Description |
---|---|---|
modelClass | M | Model constructor, e.g. Product . |
data | DataObject<PrototypeOf<M>> |
Returns:
void