You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The part about "make it Just Work™ with any extension" is that ApolloCodegenConfiguration has separate FileInput properties for schema and operations. These could conceivably have any extension since the content is loaded and fed into the JS frontend. For that to work though ApolloCodegen.compileResults(using:) would need to change to use loadSchemaFromSDL or loadSchemaFromIntrospectionResult instead of loadSchema which looks at the extension for a hint on how to handle the file.
The text was updated successfully, but these errors were encountered:
calvincestari
changed the title
Add note about standard extensions but also make it Just Work™ with any extension for focused inputs
Add note about standard extensions but also make it Just Work™ with any extension
Dec 10, 2021
See #2059.
The part about "make it Just Work™ with any extension" is that
ApolloCodegenConfiguration
has separateFileInput
properties for schema and operations. These could conceivably have any extension since the content is loaded and fed into the JS frontend. For that to work thoughApolloCodegen.compileResults(using:)
would need to change to useloadSchemaFromSDL
orloadSchemaFromIntrospectionResult
instead ofloadSchema
which looks at the extension for a hint on how to handle the file.The text was updated successfully, but these errors were encountered: