-
Notifications
You must be signed in to change notification settings - Fork 60
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
Schema type renaming #276
Schema type renaming #276
Conversation
✅ Deploy Preview for eclectic-pie-88a2ba canceled.
|
Adding new IR types to represent schema types
Updated this draft with the initial pass at the new IR types to represent the schema types, all changes are under the |
...en/Sources/ApolloCodegenLib/Templates/RenderingHelpers/GraphQLNamedType+NameFormatting.swift
Outdated
Show resolved
Hide resolved
Redid the new name handling to be on existing GraphQL schema type objects in GraphQLCompiler instead of new IR objects.
…e-types # Conflicts: # apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/InterfaceTemplate.swift
Have this updated with what should be the final implementation for handling schema type renaming after going through a few iterations. Moving on to implementing tests now and will see from there if any further tweaks are needed. |
…e-types # Conflicts: # apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/RenderingHelpers/GraphQLNamedType+NameFormatting.swift # apollo-ios-codegen/Sources/GraphQLCompiler/GraphQLSchema.swift
apollo-ios-codegen/Sources/ApolloCodegenLib/ApolloCodegen.swift
Outdated
Show resolved
Hide resolved
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.
This is looking great! Just a few suggestions. Thanks for the work on this @BobaFetters .
Tests/ApolloCodegenTests/CodeGeneration/Templates/EnumTemplateTests.swift
Outdated
Show resolved
Hide resolved
Tests/ApolloCodegenTests/CodeGeneration/Templates/InputObjectTemplateTests.swift
Outdated
Show resolved
Hide resolved
Tests/ApolloCodegenTests/CodeGeneration/Templates/InterfaceTemplateTests.swift
Outdated
Show resolved
Hide resolved
Tests/TestCodeGenConfigurations/SchemaCustomization/Package.swift
Outdated
Show resolved
Hide resolved
Tests/TestCodeGenConfigurations/SchemaCustomization/Package.swift
Outdated
Show resolved
Hide resolved
apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/InputObjectTemplate.swift
Outdated
Show resolved
Hide resolved
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.
This is really clean. Nice job!
apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/UnionTemplate.swift
Outdated
Show resolved
Hide resolved
Co-authored-by: Anthony Miller <anthonymdev@gmail.com>
...odegen/Sources/ApolloCodegenLib/Templates/RenderingHelpers/GraphQLName+RenderingHelper.swift
Outdated
Show resolved
Hide resolved
apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/EnumTemplate.swift
Outdated
Show resolved
Hide resolved
…late.swift Co-authored-by: Anthony Miller <anthonymdev@gmail.com>
…gHelpers/GraphQLName+RenderingHelper.swift Co-authored-by: Anthony Miller <anthonymdev@gmail.com>
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.
This looks great! Thanks for all the work on this Zach. This is going to resolve so many problems for so many users going forward!
Adds the ability to customize names of schema types using the configurations options added in #242