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

Refactor GraphQLOperation definition models #1964

Merged
merged 5 commits into from
Sep 23, 2021

Conversation

AnthonyMDev
Copy link
Contributor

I want use to allows for code gen to generate only the required data when using APQs.

Some users have expressed the desire to use only "allowlisted" operations and they don't want the code generation in that case to expose the entire query definition in the compiled binary. The query document was required before, now you can set it up to use different methods.

Sources/Apollo/RequestBodyCreator.swift Show resolved Hide resolved
Sources/ApolloAPI/GraphQLNullable.swift Show resolved Hide resolved
Sources/ApolloAPI/GraphQLOperation.swift Show resolved Hide resolved
Sources/ApolloAPI/GraphQLOperation.swift Outdated Show resolved Hide resolved
Sources/ApolloTestSupport/MockOperation.swift Outdated Show resolved Hide resolved
@AnthonyMDev AnthonyMDev merged commit 5362e8f into release/1.0-alpha-incubating Sep 23, 2021
@AnthonyMDev AnthonyMDev deleted the 1.0/operation-definition branch September 23, 2021 23:32
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.

4 participants