Package com.apollographql.apollo3.adapter

Types

BigDecimal
Link copied to clipboard
common
class BigDecimal
A multiplatform BigDecimalIt's here for historical reasons mainly as GraphQL doesn't has Big Decimal types and should be moved to a separate moduleBigDecimal cannot subclass Number in JS, as it will cause runtime trap in any compiled Kotlin/JS product in the module initialization script.
class BigDecimal : Number
class BigDecimal
typealias BigDecimal = BigDecimal
BigDecimalAdapter
Link copied to clipboard
common
object BigDecimalAdapter
An Adapter that converts to/from BigDecimal
DateAdapter
Link copied to clipboard
object DateAdapter : Adapter<Date>
An Adapter that converts an ISO 8601 String to/from a java.util.Date When writing, it discards the offset information.
JavaInstantAdapter
Link copied to clipboard
object JavaInstantAdapter : Adapter<Instant>
An Adapter that converts an ISO 8601 String to/from a java.time.Instant When writing, it discards the offset information.
JavaLocalDateAdapter
Link copied to clipboard
object JavaLocalDateAdapter : Adapter<LocalDate>
An Adapter that converts a date to/from java.time.LocalDateExamples:
  • "2010-06-01"

It requires Android Gradle plugin 4.
JavaLocalDateTimeAdapter
Link copied to clipboard
object JavaLocalDateTimeAdapter : Adapter<LocalDateTime>
An Adapter that converts a date and time to/from java.time.LocalDateTimeExamples:
  • "2010-06-01T22:19:44.475"

It requires Android Gradle plugin 4.
JavaOffsetDateTimeAdapter
Link copied to clipboard
object JavaOffsetDateTimeAdapter : Adapter<OffsetDateTime>
An Adapter that converts a date and time to/from java.time.OffsetDateTimeExamples:
  • "2010-06-01T22:19:44.475+01:00"

It requires Android Gradle plugin 4.
KotlinxInstantAdapter
Link copied to clipboard
common
object KotlinxInstantAdapter
An Adapter that converts an ISO 8601 String like "2010-06-01T22:19:44.
KotlinxLocalDateAdapter
Link copied to clipboard
common
object KotlinxLocalDateAdapter
An Adapter that converts an ISO 8601 String like "2010-06-01" to/from a kotlinx.datetime.
KotlinxLocalDateTimeAdapter
Link copied to clipboard
common
object KotlinxLocalDateTimeAdapter
An Adapter that converts an ISO 8601 String without time zone information like "2010-06-01T22:19:44.

Functions

toNumber
Link copied to clipboard
common
fun BigDecimal.toNumber(): Number