Version 4.1.0 updates usages of Ktor from 2.3.11 to 3.0.0:
apollo-runtime-js or apollo-debug-server-jvm, you need to update your app to Ktor 3.0.0+ at the same time as updating to Apollo 4.1.0 (apollo-debug-server-android is unaffected).apollo-mockserver or apollo-ktor-support from this repo, you need to update to the new coordinates.All other cases are unaffected. In particular, apollo-runtime on Android and iOS uses OkHttp and NsUrlConnection respectively and is not impacted by the Ktor update.
You can read more details in the pull request.
application/graphql-response+jsonapplication/graphql-response+json is a new media type being introduced by the GraphQL over HTTP draft. It allows differentiating a valid GraphQL response from an error JSON response that could be transmitted by a cache or proxy in the HTTP chain.
If your server uses application/graphql-response+json and returns non-2xx response, Apollo Kotlin will now parse those responses and expose data and errors instead of returning an ApolloHttpException before.
The IntelliJ plugin is now compatible with K2 (#6150)
apollo-mockserver and apollo-ktor-supportapollo-mockserver is now at com.apollographql.mockserver:apollo-mockserver:0.1.0 and developed at https://github.com/apollographql/apollo-kotlin-mockserverapollo-ktor-support is now at com.apollographql.ktor:apollo-engine-ktor:0.1.0 and developed at https://github.com/apollographql/apollo-kotlin-ktor-support/apollo-mockserver and apollo-ktor-support (#6215)Fetched April 11, 2026