Skip to content

Multiple foreignkeys possibility in Model Relation? #2080

@chojowliu

Description

@chojowliu

In the loopback model relations section, you can specificity a foreignKey to be referenced in the other model. As far as I know, It will only take one field, but what about I have a composite primary key and want to be referenced in the other model?

Can I do something like?

"foreignKey":["id1","id2"]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions