GraphQL is a query language for the APIs for getting your data. It is an alternative for the REST APIs.
👉 Installation The plugin is available on the JetBrains plugin repository. To install it from the IDE, go to Settings | Plugins | Marketplace | search for "Apollo GraphQL" | Install Please check the plugin page for up to date information.
👉 https://studio.apollographql.com/public/countries/variant/current/home
Either, manually: 👉 Apollo Studio Schema Reference
Or using Apollo's gradle task:
./gradlew :app:downloadApolloSchema --endpoint='paste-apollo-url-here' --schema=app/src/main/graphql/schema.graphqls
Replace with the actual API schema URL you obtained from the Apollo Studio reference.
Example:
./gradlew :app:downloadApolloSchema --endpoint='https://countries.trevorblades.com/graphql' --schema=app/src/main/graphql/schema.graphqls
List Screen | Details Screen |
---|---|