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

feature: Reduce Generated Schema Types #601

Merged
merged 8 commits into from
Feb 18, 2025
Merged

Conversation

BobaFetters
Copy link
Member

Adds a new codegen configuration option to reduce the number of Object types that are generated so that only types that are referenced in an operation document or have a @typePolicy will be generated, instead of generating all types that implement a referenced Interface.

Closes apollographql/apollo-ios#3505

Adds a new codegen configuration option to reduce the number of Object types that are generated so that only types that are referenced in an operation document or have a @typePolicy will be generated, instead of generating all types that implement a referenced Interface.
# Conflicts:
#	apollo-ios-codegen/Sources/GraphQLCompiler/ApolloCodegenFrontendBundle.swift
@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Feb 12, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 1 changed, 0 removed
* (developer-tools)/ios/(latest)/code-generation/codegen-configuration.mdx

Build ID: 645a0c84658797a04f471acd

URL: https://www.apollographql.com/docs/deploy-preview/645a0c84658797a04f471acd

Copy link

netlify bot commented Feb 12, 2025

Deploy Preview for apollo-ios-docc canceled.

Name Link
🔨 Latest commit ab5594b
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docc/deploys/67b4cb21f9fc560008ea2e99

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.

Just a couple of minor comments. This looks really good!

Copy link
Member

@calvincestari calvincestari left a comment

Choose a reason for hiding this comment

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

Just a question about a property on Object, looks good otherwise.

@BobaFetters BobaFetters merged commit 7a70775 into main Feb 18, 2025
31 checks passed
@BobaFetters BobaFetters deleted the feature/reduce-schema-types branch February 18, 2025 19:04
BobaFetters added a commit to apollographql/apollo-ios that referenced this pull request Feb 18, 2025
BobaFetters added a commit to apollographql/apollo-ios-codegen that referenced this pull request Feb 18, 2025
BobaFetters pushed a commit that referenced this pull request Feb 18, 2025
d819a576 feature: Reduce Generated Schema Types (#601)
81bb93a7 Update ROADMAP.md

git-subtree-dir: apollo-ios
git-subtree-split: d819a5764124feb5ae4bc1f93b673b6267fa0cac
BobaFetters pushed a commit that referenced this pull request Feb 18, 2025
git-subtree-dir: apollo-ios
git-subtree-mainline: 1d81901
git-subtree-split: d819a5764124feb5ae4bc1f93b673b6267fa0cac
BobaFetters pushed a commit that referenced this pull request Feb 18, 2025
d689a45f feature: Reduce Generated Schema Types (#601)

git-subtree-dir: apollo-ios-codegen
git-subtree-split: d689a45f6ddd527fc77d8f62a7f2f0ad66b8d2f7
BobaFetters pushed a commit that referenced this pull request Feb 18, 2025
…a Types

git-subtree-dir: apollo-ios-codegen
git-subtree-mainline: c383a3d
git-subtree-split: d689a45f6ddd527fc77d8f62a7f2f0ad66b8d2f7
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.

feature: Reduce generated schema types
5 participants