sbklS
Convex Community2y ago
1 reply
sbkl

Convex Ents, many to many pivot table with additional fields

Cannot find it in the documentation. Is it possible to add custom fields to a many-to-many relationships pivot table with convex Ents and the edges method? Like a collection could belong to many regions and a region can have many collections. If the case you would want to add an archive feature to archive a specific collection for a given region, the pivot table would have a "archivedAt" field to record this, on top of the collectionId and regionId fields. If you see what I mean.
Otherwise, I guess the only is to make it manually with the vanilla convex syntax which would be the same for query and mutation?
Was this page helpful?