[Convex Ents] Missing inverse edge
Hi got this this error with this code, seems like I missed an inverse edge but I have no clue where and why:
package.json: https://gist.github.com/FleetAdmiralJakob/a56f4a4f6d03c93b0773dd2dc0fbbbcc
4 Replies
Try
.edges("messages", {ref: true})
https://labs.convex.dev/convex-ents/schema#1many-edges
The error message could be betterEnt Schema - Convex Ents
Relations, default values, unique fields and more for Convex
Thank you for your answer! Did not help. It now looks like this:
GitHub
Usability: Table name pluralization in edge() vs edges() is confusi...
I don't think it's very usable to make the table name change pluralization when adding an edge() vs adding an edges(). It seems okay in simple cases: configs: defineEnt({}) .edges("foo...
Where exactly? I already use the singular edge twice in the message ent
Wait a minute.... Do I have to use different forms (singular/plural), in the edge parameter of edge() and edges()?
I am so confused.
Oh man.
I got it. Ig
This seems to work
Thank you Michal
But yeah, it was more trial and error than knowing what I did