apollographql / apollo-kotlin

:rocket:  A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
https://www.apollographql.com/docs/kotlin
MIT License
3.76k stars 653 forks source link

Spring Boot AutoConfiguration #3289

Closed martinbonnin closed 4 months ago

martinbonnin commented 3 years ago

Similar to https://github.com/freefair/okhttp-spring-boot, add support for Spring Boot Autoconfiguration

The url could be set as a application.yml property: apollo.client.server-url=https://some-site.com/graphl so that the ApolloClient is made available automatically.

csabakos commented 3 years ago

The auto-configuration should also make sure that the

properties that get used for creating ApolloClient are Spring beans, so that auto-instrumentation frameworks that use bean postprocessors (such as Spring Cloud Sleuth) work out of the box.

martinbonnin commented 4 months ago

Closing as out of scope. We're welcoming 3rd party integrations though. If anyone gets to it, please share it and we'll add it to the list!