Closed cvb941 closed 1 week ago
Thanks for reporting this! We may be able to support this in the future but in the meantime a simple solution is to use a typealias:
typealias MassMeasure = Measure<Mass>
mapScalar("Mass", "data.apollo.MassMeasure", "data.apollo.MassAdapter")
Closing as a duplicate of https://github.com/apollographql/apollo-kotlin/issues/3243
(forgot to close) this will be available in next release, closing now.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.
Version
4.0.0
Summary
I'm trying to setup an adapter for a Mass measurement from a float.
mapScalar("Mass", "io.nacular.measured.units.Measure<Mass>", "data.apollo.MassAdapter")
Notice that the target class has a type parameter.
Gradle sync fails with the following error:
Can't escape identifier `Measure<Mass>` because it contains illegal characters: <>
This is the adapter (for completeness):
Steps to reproduce the behavior
No response
Logs