V8-archive: Suggest to create "symmetric view" in the linked table when adding a many to many relationship

Created on 25 Mar 2020  Â·  5Comments  Â·  Source: directus/v8-archive

Feature Request

Before I chose Directus, I had a thorough look at Strapi. They have developed an interesting feature that would also be helpful in Directus: when adding a many to many relationship between, say, table A and B:

  • the related records of B are shown in records of table A (actual behavior in Directus)
  • but the records of table B also show linked records from table A (not available in Directus)

At least, this should be an option in Directus.

What problem does this feature solve?

In a many to many relationship between tables, there is no _hierarchy_ between them: they are equally weighted.Therefore there is no reason to favor one against the other by displaying the related records in one, but not in the other.

How do you think this should be implemented?

  • either by automatically creating the symmetric structure in the related table
  • or at least suggest the user to create it
app

Most helpful comment

Yes I know, but having it suggested by Directus would be great -- just as the great feature you implemented in the many to many relationship creation process: the checkbox that says Auto-Generate.

On 3/25/20 9:50 AM, Rijk van Zanten wrote:
>

but the records of table B also show linked records from table A
(not available in Directus)

You can add a many to many interface to table B with the same
relationship to achieve this

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/directus/directus/issues/2636#issuecomment-603850278,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXN4CW3GSJSBDOZCPAYI2LRJID2NANCNFSM4LTOUU7A.

All 5 comments

but the records of table B also show linked records from table A (not available in Directus)

You can add a many to many interface to table B with the same relationship to achieve this

Yes I know, but having it suggested by Directus would be great -- just as the great feature you implemented in the many to many relationship creation process: the checkbox that says Auto-Generate.

On 3/25/20 9:50 AM, Rijk van Zanten wrote:
>

but the records of table B also show linked records from table A
(not available in Directus)

You can add a many to many interface to table B with the same
relationship to achieve this

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/directus/directus/issues/2636#issuecomment-603850278,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXN4CW3GSJSBDOZCPAYI2LRJID2NANCNFSM4LTOUU7A.

I agree — I think it would be nice to include an auto-generate the "corresponding" field on the reverse collection. I'll add this to the v9 design now.

I think this option should be added to the setup of _all_ Relationships... since you might want to create it for a M2O too. Also, we'll need to check if the reverse relationship has already been setup before offering to add it.

Sneak preview...

Modal

Yes, right!~Great implementation.

On 3/25/20 11:05 AM, Ben Haynes wrote:
>

I think this option should be added to the setup of /all/
Relationships... since you might want to create it for a M2O too.
Also, we'll need to check if the reverse relationship has already been
setup before offering to add it.

Sneak preview...

Modal
https://user-images.githubusercontent.com/522079/77551177-68bc4d00-6e88-11ea-8fc1-06eeb05d7cbc.png

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/directus/app/issues/2686#issuecomment-603892772,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXN4CVNZBYWJAON43VUS2TRJIMTXANCNFSM4LTPTY7A.

Was this page helpful?
0 / 5 - 0 ratings