Skip to main content

getParentRelation

@webda/core


Function: getParentRelation()

getParentRelation(model): object

Defined in: packages/core/src/models/permissions.ts:218

The parent relation (ModelParent) of a model, if any

Parameters​

model​

any

the model class

Returns​

object

the parent attribute and model identifier

attribute​

attribute: string

model​

model: string