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
Table can't reference another table twice #188
Comments
Ok, I found out the line that can be fixed https://github.com/platformatic/platformatic/blob/main/packages/sql-graphql/lib/relationship.js#L26 It should probably rely on The more harder topic – how should we determine how we should call that relation? It's easy if it's called So there could be a numerous solutions but I have no idea which one better suits this framework Also would be glad to help if needed :) |
Inverse side of the relation is also gonna be broken in that case movies {
id
quotes {
id
}
}
|
A PR would be awesome, thanks! As for naming, I would recommend using the same logic of the other properties. |
Got you, I'll let you know if I'm gonna get stuck again |
Given the following schema
I can't fetch
another_movie
entity from graphQL. By the way, it's a real case scenario, table names were changed on purposeTried finding a problem by myself but haven't got a clue where to start
The text was updated successfully, but these errors were encountered: