Customize relations

System Information
  • 3.3.3:
  • Ubuntu:
  • Mongo:
  • 12.19.0:
  • 6.14.8:
  • 1.22.5:

Hello!
How can I add custom parameters to relations?
Let’s say we have Person model and Siblling relation to other persons. Is it possible to add also Sister relation, so it would return Sibling records with {“sex”: “female”} attribute only?

Not currently, this feature has come up a number of times and it’s what we call dependent relations or parent/child relations.

I’ll add a feature request on GitHub for it as the few people I’ve asked in the past have never done it. :stuck_out_tongue:

1 Like

Any updates on this ? As PR is closed on GitHub.

Try this Strapi Plugin: Parent-Child Relationships