A basic example using GraphQL to get the countries from an API using Apollo Client
GraphQL Countries App
This is a simple app that uses the Countries GraphQL API to display a list of countries and their details.
Ref
Download Schema
To download the schema, run the following command:
./gradlew :app:downloadApolloSchema --endpoint='https://countries.trevorblades.com/graphql' --schema=app/src/main/graphql/com/example/schema.graphqls
Screenshots
Countries | Country Details |
---|---|