Feature request · API & developer experience · Blocks work
Polymorphic relations with union or interface types
1 source thread · first seen 2019-06
Summary
The requester wants polymorphic associations, such as an address shared by people and organizations, with cascade deletes and union or interface types in the schema.
- Workaround
- Create a Postgres trigger manually to delete the related row
Evidence
Excerpts are copied word for word from the source; follow the link to read it in full.
“The ability to create polymorphic `one-to-one`, `one-to-many`, and `many-to-many` relationships in Hasura”