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
Currently, in ApolloCodegen you can only initialize ApolloSchemaOptions with a single header property, which is translated to --header="<HEADER>". Since the Apollo CLI allows for multiple headers arguments (... --header=<HEADER1> --header=<HEADER2>), I was wondering if it would be possible to implement this in this tool?
One potential way, albeit a breaking change, is to do the following:
This changes header to an array of headers instead and provides the same logic to append extra headers to the end of the CLI call.
I've tested this with a forked repo and it appears to still work, of course after updating any implementations to use headers, instead of header: LachlanMcCulloch@fe5d417
Let me know if you need any more supporting information or clarification.
Cheers! :)
The text was updated successfully, but these errors were encountered:
Currently, in
ApolloCodegen
you can only initializeApolloSchemaOptions
with a singleheader
property, which is translated to--header="<HEADER>"
. Since the Apollo CLI allows for multiple headers arguments (... --header=<HEADER1> --header=<HEADER2>
), I was wondering if it would be possible to implement this in this tool?One potential way, albeit a breaking change, is to do the following:
This changes header to an array of headers instead and provides the same logic to append extra headers to the end of the CLI call.
I've tested this with a forked repo and it appears to still work, of course after updating any implementations to use
headers
, instead ofheader
:LachlanMcCulloch@fe5d417
Let me know if you need any more supporting information or clarification.
Cheers! :)
The text was updated successfully, but these errors were encountered: