apollographql / apollo-kotlin-tutorial

The code for the Apollo Kotlin Tutorial
MIT License
57 stars 43 forks source link

Following Tutorial - End of Step 1 issue #44

Open blundell opened 1 year ago

blundell commented 1 year ago

Following the tutorial here: https://www.apollographql.com/docs/kotlin/tutorial/01-configure-project

At the end of step 1 it says:

Android Studio will display a yellow banner, A project sync may be necessary for the IDE to work properly. Click Sync Now.

If everything goes well, Apollo Kotlin is now added to your project. Next, you will add the GraphQL schema to the project.

Clicks Sync Now

However you get the error

No schema file found in: src/main/graphql

image

Which seems to be step 2 of the tutorial. Just a heads up.


After completing step 2 (i.e. running the command ./gradlew :app:downloadApolloSchema --endpoint='https://apollo-fullstack-tutorial.herokuapp.com/graphql' --schema=app/src/main/graphql/schema.graphqls), the project sync's successfully.

martinbonnin commented 1 year ago

Thanks for catching this. Tweaked the structure there: https://github.com/apollographql/apollo-kotlin/pull/4862