-
Notifications
You must be signed in to change notification settings - Fork 646
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
Allow to add HTTP headers on top of ApolloClient ones #4754
Conversation
✅ Deploy Preview for apollo-android-docs canceled.
|
libraries/apollo-api/src/commonMain/kotlin/com/apollographql/apollo3/api/ApolloRequest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Bad news everyone, this broke this test because interceptors work with |
These tests failing lead me to a somewhat better solution leaving the public API untouched 👌 . |
@@ -185,8 +182,23 @@ object SchemaDownloader { | |||
|
|||
inline fun <reified T> Any?.cast() = this as? T | |||
|
|||
private fun getIntrospectionQuery(includeDeprecatedInputFieldsAndArguments: Boolean): String { | |||
val includeDeprecated = if (includeDeprecatedInputFieldsAndArguments) "(includeDeprecated: true)" else "" | |||
fun getIntrospectionQuery(specVersion: SpecVersion): String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some unrelated commit got in the way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I just rebased again. Should be good this time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better 👍
a2975c2
to
89e9d69
Compare
* allow to add HTTP headers on top of ApolloClient ones * keep binary compatibility * update apiDump * fix adding several headers * udate apiDump
See #4753