Seb Jachec
08/06/2025, 1:23 PMString
.mbonnin
08/06/2025, 1:26 PMmbonnin
08/06/2025, 1:26 PMmbonnin
08/06/2025, 1:27 PM5.0.0-alpha.1
, the data builder codegen has been cleaned up thereSeb Jachec
08/06/2025, 1:40 PM5.0.0-alpha.1
!mbonnin
08/06/2025, 1:45 PM5.0.0
is going to be a very boring release, I don't expect lots of changes there so if you can, I'd recommend using the alphas. If it's a blocker, let me know and we can dig into thismbonnin
08/06/2025, 1:45 PM5.0.0
is major mainly because we need to remove some deprecated thingmbonnin
08/06/2025, 1:45 PMSeb Jachec
08/06/2025, 4:37 PMmbonnin
08/06/2025, 4:50 PMSeb Jachec
08/06/2025, 6:18 PMapollo-kotlin-data-builders-issue-2025-08-06/app/build/generated/dataBuildersSource/apollo/service/com/example/myapplication/api/builder/NotificationBuilder.kt:33:34 Property delegate must have a 'setValue(NotificationBuilder, KMutableProperty1<NotificationBuilder, DateTime>, DateTime)' method. None of the following functions is applicable:
fun setValue(thisRef: DataBuilder<*>, property: KProperty<*>, value: String): Unit
Seb Jachec
08/06/2025, 6:18 PMmbonnin
08/06/2025, 6:28 PMmbonnin
08/06/2025, 6:31 PMpublic var createdAt: String by BuilderProperty(StringAdapter)
mbonnin
08/06/2025, 6:50 PMmbonnin
08/06/2025, 6:51 PMmbonnin
08/06/2025, 6:57 PMmbonnin
08/06/2025, 6:57 PMextend scalar DateTime @mapTo(builtIn: String, inline: false)
or not generate data builders)Seb Jachec
08/06/2025, 7:21 PMSeb Jachec
08/11/2025, 10:36 AMmapTo
usage in our schema extensions file, once I've added the normalized cache plugin (that I'd managed to forget)?
extend schema @link(url: "<https://specs.apollo.dev/kotlin_labs/v0.5/>", import: ["@mapTo", "@typePolicy"])
extend scalar Date @mapTo(builtIn: String)
extend scalar DateTime @mapTo(builtIn: String)
extend scalar Time @mapTo(builtIn: String)
..
Execution failed for task ':shared:api:generateServiceApolloSources'.
> A failure occurred while executing com.apollographql.apollo.gradle.internal.GenerateSources
> e: null: (115, 1): Unexpected 'mapTo' definition. Expecting 'directive @mapTo (builtIn: BuiltIn!, inline: Boolean! = true) on SCALAR'.
mbonnin
08/11/2025, 10:44 AMmbonnin
08/11/2025, 10:45 AMSeb Jachec
08/11/2025, 10:47 AMgenerateDataBuilders
):
@OptIn(ApolloExperimental::class)
plugin("com.apollographql.cache:normalized-cache-apollo-compiler-plugin:1.0.0-alpha.5") {
argument("com.apollographql.cache.packageName", packageName.get())
}
mbonnin
08/11/2025, 10:51 AMSeb Jachec
08/11/2025, 10:52 AMmbonnin
08/11/2025, 10:52 AMSeb Jachec
08/11/2025, 10:58 AMmbonnin
08/11/2025, 1:09 PMSeb Jachec
08/12/2025, 9:30 AMplugin(libs.apollo.cacheCompilerPlugin)
nor plugin("com.apollographql.cache:normalized-cache-apollo-compiler-plugin:${libs.versions.apolloCache}")
work as part of the Apollo configuration block, unlike regular dependencies specified elsewherembonnin
08/12/2025, 9:33 AMSeb Jachec
08/12/2025, 9:49 AMmbonnin
08/12/2025, 9:49 AM