Open blundell opened 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.
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
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.
./gradlew :app:downloadApolloSchema --endpoint='https://apollo-fullstack-tutorial.herokuapp.com/graphql' --schema=app/src/main/graphql/schema.graphqls
Thanks for catching this. Tweaked the structure there: https://github.com/apollographql/apollo-kotlin/pull/4862
Following the tutorial here: https://www.apollographql.com/docs/kotlin/tutorial/01-configure-project
At the end of step 1 it says:
Clicks Sync Now
However you get the error
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.