Skip to content

GraphQL is a query language for the APIs for getting your data. It is an alternative for the REST APIs.

License

Notifications You must be signed in to change notification settings

RonikLimbani/GraphQL-Sample

Repository files navigation

GraphQL-Sample

GraphQL is a query language for the APIs for getting your data. It is an alternative for the REST APIs.

Graphql plugin:

👉 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.

Get to the countries API here:

👉 https://studio.apollographql.com/public/countries/variant/current/home

Get the GraphQL schema file

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

🖼️ OutPut Screens

List Screen Details Screen

Useful links

Releases

No releases published

Packages

No packages published

Languages