Marco Pierucci
07/31/2024, 9:43 AMMarco Pierucci
07/31/2024, 9:44 AMbuildFieldUserAppointmentType
are correct but the result of AppointmentInfoImpl.Data(KrakenFieldFakeResolver())
is ignoring the values and using defaultsmbonnin
07/31/2024, 9:49 AMmbonnin
07/31/2024, 9:49 AMnotes
is not good up there?Marco Pierucci
07/31/2024, 9:50 AMtest-notes
Marco Pierucci
07/31/2024, 9:50 AMmbonnin
07/31/2024, 9:50 AMmbonnin
07/31/2024, 9:54 AMKrakenFieldFakeResolver()
?John O'Reilly
07/31/2024, 9:55 AMDon't know how to instantiate leaf UUID
java.lang.IllegalStateException: Don't know how to instantiate leaf UUID
at com.apollographql.apollo.api.DefaultFakeResolver.resolveLeaf(fakeResolver.kt:280)
mbonnin
07/31/2024, 9:56 AMbuildFieldUserAppointmentType
, does that need to be set to some field?mbonnin
07/31/2024, 9:56 AMval appointmentInfo = AppointmentInfoImpl.Data(KrakenFieldFakeResolver()) {
userAppointment = buildFieldUserAppointmentType {
id = "appointmentId"
notes = "test-notes"
// ...
}
}
John O'Reilly
07/31/2024, 9:58 AMval appointmentInfo = AppointmentInfoImpl.Data(KrakenFieldFakeResolver()) {
// buildFieldUserAppointmentType {
id = "appointmentId"
notes = "test-notes"
assetProviderData = buildAssetProviderDataType {
assetProvider = ""
commsHubVariant = ""
}
// }
}
John O'Reilly
07/31/2024, 9:58 AMbuildFieldUserAppointmentType
not needed any more it seems?mbonnin
07/31/2024, 10:00 AMbuildFoo()
return value is really supposed to be used 🤔John O'Reilly
07/31/2024, 10:00 AMmbonnin
07/31/2024, 10:00 AMmbonnin
07/31/2024, 10:00 AMmbonnin
07/31/2024, 10:00 AMMarco Pierucci
07/31/2024, 10:00 AMpublic
fun BuilderScope.buildFieldUserAppointmentType(block: FieldUserAppointmentTypeBuilder.() -> Unit):
FieldUserAppointmentTypeMap {
val builder = FieldUserAppointmentTypeBuilder(customScalarAdapters)
builder.__typename = "FieldUserAppointmentType"
builder.block()
return builder.build()
}
this in 3.8.4John O'Reilly
07/31/2024, 10:00 AMpublic
fun BuilderScope.buildFieldUserAppointmentType(block: FieldUserAppointmentTypeBuilder.() -> Unit):
FieldUserAppointmentTypeMap =
FieldUserAppointmentTypeBuilder(customScalarAdapters).apply(block).build()
mbonnin
07/31/2024, 10:04 AMmbonnin
07/31/2024, 10:04 AMmbonnin
07/31/2024, 10:05 AMbuildFoo {}
is not needed anymore, sorry I forgot it was like this in v3Marco Pierucci
07/31/2024, 10:05 AMmbonnin
07/31/2024, 10:11 AMmbonnin
07/31/2024, 10:51 AMMarco Pierucci
07/31/2024, 11:00 AMMarco Pierucci
07/31/2024, 11:00 AM