https://github.com/roniklimbani/graphql-sample
GraphQL is a query language for the APIs for getting your data. It is an alternative for the REST APIs.
https://github.com/roniklimbani/graphql-sample
androidstudio graphql hilt hilt-android hilt-dependency-injection jetpack-android jetpack-compose jetpackcompose kotlin kotlin-android
Last synced: 3 months ago
JSON representation
GraphQL is a query language for the APIs for getting your data. It is an alternative for the REST APIs.
- Host: GitHub
- URL: https://github.com/roniklimbani/graphql-sample
- Owner: RonikLimbani
- License: mit
- Created: 2024-12-12T08:24:18.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-12-18T11:21:20.000Z (6 months ago)
- Last Synced: 2025-02-02T08:32:36.320Z (5 months ago)
- Topics: androidstudio, graphql, hilt, hilt-android, hilt-dependency-injection, jetpack-android, jetpack-compose, jetpackcompose, kotlin, kotlin-android
- Language: Kotlin
- Homepage:
- Size: 321 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://plugins.jetbrains.com/plugin/20645-apollo-graphql) 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](https://studio.apollographql.com/public/countries/variant/current/schema/reference)Or using Apollo's gradle task:
```shell
./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:
```shell
./gradlew :app:downloadApolloSchema --endpoint='https://countries.trevorblades.com/graphql' --schema=app/src/main/graphql/schema.graphqls
```## 🖼️ OutPut Screens
| List Screen| Details Screen |
|------------|----------------|
||
|
## Useful links
- [Apollo Kotlin README](https://www.apollographql.com/docs/kotlin)