GraphQL with Retrofit on Android
The app calls to graphql-weather-api
if you need a mutation should be to change this line
paramObject.put("query", "query {users(userid:$userId){username}}")
to
paramObject.put("query", "mutation {users(userid:$userId){username}}")
You can find more information in this blog.
- Android Studio
- Gradle
- Install Android Studio:
https://developer.android.com/sdk/installing/index.html
- Install gradle:
http://gradle.org/docs/current/userguide/installation.html
Compile with Android Studio and gradle
Feel free to contribute, and contact me for any issues.
- Javier González Cabezas - [email protected]
Copyright 2020 Javier González
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,