Unable to infer relation
I have the following tables and relations:
My goal is to get a single platform, and all the associated founders with this query:
But this fails with the error
Internal error: Error: There is not enough information to infer relation "platforms.founders"
. I'm not exactly sure what I can do to fix this.3 Replies
Also, when trying include other relations that I have a join table for, everything works as expected:
You are missing the foundersRelations, that should one to platforms
Ah, so I always need to create the relations both ways? I thought since I'm querying from the platform, the relation from platform to founders was enough