Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support many:many edges with data #12

Open
xixixao opened this issue Jan 14, 2024 · 1 comment
Open

Support many:many edges with data #12

xixixao opened this issue Jan 14, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@xixixao
Copy link
Collaborator

xixixao commented Jan 14, 2024

Right now many:many edges that need to store data (or additional edges) can be modeled by two 1:many edges pointing at the same table. This is good, but perhaps it has some functionality gaps. many:many edges support looking up edge presence and traversing the edge by using a combined index, but in the case of an ent defined for this purpose the developer has to do this manually.

@xixixao xixixao added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 14, 2024
@matthewLuo
Copy link

matthewLuo commented Aug 7, 2024

I need this feature. I have a chat app with a users table and spaces table. The junction table, spaceMembers, needs to have columns like role, joinedTime, etc.

One of the key value propositions of Convex Ents is ergonomic many-to-many relationships, so it seems to be a significant loss of functionality to have to define two 1:many edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants