based on the documentation <found here>, I should ...
# apollo-kotlin
a
based on the documentation found here, I should be able to add this to my gradle file:
Copy code
apollo {
    service("foo") {
        generateAsInternal.set(true)
        schemaFile.set(file("src/commonMain/graphql/com/example/shared/graphql/schema.graphqls"))

        registry {
            graph.set("example-123")
            graphVariant.set("variant")
            key.set(".....")
        }
    }
}
and then just run
./gradlew downloadApolloSchema
but I’m being met with the following error
Copy code
* What went wrong:
Execution failed for task ':shared:downloadApolloSchema'.
> ApolloGraphQL: no schema property
I assume I’m missing something simple?
m
I think the name needs to be
downloadFooApolloSchema
if it's used from a
service {}
block
a
Just figured that out and was about to reply here.. thanks 🙂
I was trying without defining a service, and the correct task then is
downloadServiceApolloSchemaFromIntrospection
m
Nice, thanks for confirming, I'll update these docs!
a
👍