Skip to content
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: Use correct schema namespace casing in fragments #2730

Merged
merged 4 commits into from
Dec 14, 2022

Conversation

calvincestari
Copy link
Member

@calvincestari calvincestari commented Dec 14, 2022

Fixes #2705

FragmentTemplate was a template still using schema name from the IR schema. It now uses schema name from the codegen configuration.

I thought we'd caught all these places in #2586 but it turns out not. So I've now removed schema name from IR.Schema so it cannot be had from there anymore and I've removed the IR schema from templates and file generators where it's not used.

I'd prefer to have a centralized place where config.schemaName is first capitalized without having to do it in many different places but I'll handle that in the next round of config changes.

@netlify
Copy link

netlify bot commented Dec 14, 2022

Deploy Preview for apollo-ios-docs canceled.

Name Link
🔨 Latest commit d683920
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docs/deploys/639948bf28af4c0009986d9b

Copy link
Contributor

@AnthonyMDev AnthonyMDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great clean up! Thanks @calvincestari

@calvincestari calvincestari merged commit 247cdbd into main Dec 14, 2022
@calvincestari calvincestari deleted the fix/fragment-template-schema-namespace branch December 14, 2022 19:10
@calvincestari calvincestari mentioned this pull request Jan 10, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot find type 'graphQLSchema' in scope.
2 participants