Enabling Auto Persisted Queries with ApolloClient.Builder.enableAutoPersistedQueries(true) will now enable mutations as well (#2509). This should cause no problem in the vast majority of cases. Server supporting auto persisted queries usually support auto persisted mutations as well. As a precautionary measure, we nonetheles recommend testing the integration with your server after upgrading.
The generated models and parsers can now target Javascript thanks to @andersio and @omainegra 💛. Check out the documentation for adding it to your multiplatform project. For runtime support, follow this issue.
In addition to OperationIdGenerator, you can now generate operation IDs in batch. This is useful if your backend requires a list of operations to whitelist that should be sent all at once.
Exemple usage:
// build.gradle.kts
apollo {
// ...
operationOutputGenerator.set(object : com.apollographql.apollo.compiler.OperationOutputGenerator {
// don't forget to bump the version if you change the implementation
override val version = "v1"
override fun generate(operationDescriptorList: Collection<OperationDescriptor>): OperationOutput {
return operationDescriptorList.associate {
it.source.md5() to it
}
}
})
}
toBuilder for ApolloMutationCall (#2501)defaultValue="null" for non-string scalar types (#2490)is for better java interop (#2474)Many thanks to @JakeSteam, @nymerias, @s1ee, @andersio, @omainegra and @olivierg13 for their awesome contributions!
Fetched April 11, 2026