https://kotlinlang.org logo
#apollo-kotlin
Title
# apollo-kotlin
m

Marcelo Hernandez

09/26/2023, 8:11 PM
Hello. Is there a way to configure Apollo Kotlin to fail the build if a deprecated field is being used in any
*.graphql
files? Thanks in advance!
m

mbonnin

09/26/2023, 8:17 PM
This should do it:
Copy code
apollo {
  service("api") {
    warnOnDeprecatedUsages.set(true)
    failOnWarnings.set(true)
  }
}
🙏 1
m

Marcelo Hernandez

09/26/2023, 8:18 PM
Oh sweet! I'll give that a shot. Thank you Martin!
👍 1