Page Contents
Home > @loopback/repository-json-schema > getNavigationalPropertyForRelation
getNavigationalPropertyForRelation() function
Checks and return navigational property definition for the relation
Signature:
export declare function getNavigationalPropertyForRelation(relMeta: RelationMetadata, targetRef: JsonSchema): JsonSchema;
Parameters
Parameter | Type | Description |
---|---|---|
relMeta | RelationMetadata | Relation metadata object |
targetRef | JsonSchema | Schema definition for the target model |
Returns:
JsonSchema