Miles Alden
07/14/2021, 12:29 AMinterface TourService {
@POST("/")
suspend fun toursQuery(
@Header("Authorization") auth: String,
@Header("Content-Type") content: String = "application/json",
@Body body: String): List<Tour>
}
object ApolloBuilder {
private const val BASE_URL = "<https://somewhere.com>"
private fun getApollo(): ApolloClient {
return ApolloClient.builder()
.serverUrl(BASE_URL)
.build()
}
}
I assumed that the @Header
annotation would magik things in 😄Saharath Kleips
07/14/2021, 12:36 AMgraphql-kotlin
question, RequestHeader
?Miles Alden
07/14/2021, 12:39 AM@Header
annotation works for Retrofit.Saharath Kleips
07/14/2021, 12:40 AMMiles Alden
07/14/2021, 12:44 AMShane Myrick
07/14/2021, 1:51 AM