-
Notifications
You must be signed in to change notification settings - Fork 184
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
Fix Torii graphql type name collision #1086
Conversation
Looks like good way to do it. Instead of renaming, perhaps we could remove the prefix here when constructing the table name for nested type:
|
I see, so, for this example, for current |
I mean let's avoid renaming table and just remove prefix in path array. For example, the doubly nested member |
@broody I think I am done. Please check here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working good, just some suggestions to provide more context
Hi @broody. I added your suggestions, indeed they are meaningful and useful for developer documentation |
Resolves #1032
Redefine graphql types like {Model}_{CustomType/NestedType}
It is working for some queries, but for some of them it is failing
Reason is
GraphQL query returned errors: [ServerError { message: "error returned from database: (code: 1) no such table: Record$Record_Nested
Indeed we have
Record$Nested
table, but we dont haveRecord$Record_Nested
table.So the side effect to redefine names of graphql types is that we have rename as well some tables names on our database.
@broody I am going on the right way? Any suggestion about this? Thanks