Remove dependency on apollo CLI for fetching schema#1935
Remove dependency on apollo CLI for fetching schema#1935calvincestari merged 49 commits intomainfrom
Conversation
…r than using the JS CLI
…request" This reverts commit 9aac6367a611260ffea12e3b0ae965b999d9b9d3.
I tried pulling some of this stuff into Core but you have to pull so much into core to make it work since by default it uses a bunch of `Apollo` only types that it kind of defeats the point of keeping core small, and realistically the only place where we even *should* be using untyped queries is in grabbing the schema.
…ause the JSON is so damned huge
…o an actual schema rather than just being json
…ownloaded Introspection file.
…bally installed it
* renamed for better context * improved initializer
75b7278 to
6e5e1dc
Compare
AnthonyMDev
left a comment
There was a problem hiding this comment.
Great job on this! So glad to have this finished, and it looks great. Just a couple of suggestions.
One question: Do you know why the bundled ApolloCodegenFrontend.bundle.js changed? Did we need to make changes to the js library?
Yeah there was one method I had to expose for moving between JSON and SDL - I'm not quite seeing where the actual code went, though. Not sure if it got eaten in a merge or what |
This is the exact diff - |
designatednerd
left a comment
There was a problem hiding this comment.
One question re testing, otherwise this is ![]()
This change removes a dependency on the Apollo CLI for schema downloading. Schema downloads are now Swift-based and maintainable/extensible within apollo-ios.
Notable changes:
URLDownloaderfromCLIDownloader; used in both CLI and schema downloading. CLI downloading will be removed along with the Swift codegen implementation.UntypedGraphQLRequestBodyCreator- a non-type-safe request creator to facilitate sending requests not using code generation.ApolloSchemaOptionsApolloSchemaDownloadConfigurationfor a more specific naming context.ApolloSchemaDownloaderAPIsfetch(with:)is more expressive thanrun(options:).Closes #1823