Can apollo-android be used as a java client?

若如初见. 提交于 2019-12-19 09:36:11

问题


I'm working on a spring boot app that needs to talk to the Github GraphQl API. Can apollo-android be used for this purpose? Since all of it's scarce documentation available as well as the sample project is written with android in mind, I'm not sure.


回答1:


maintainer here. You can absolutely use Apollo-Android in a java only project. There is only 1 module/artifact that is android specific which is not required. The android artifact simply brings in android specific threading models. Come join our slack if you need more help :-) http://www.apollostack.com/#slack




回答2:


Found this maven plugin. It would be nice if you could make a sample project that uses apollo-android in spring boot.




回答3:


You can check the graphql-maven-plugin-project, which generates all the necessary code to make it easy to execute GraphQL requests in Java.

It's available at https://github.com/graphql-java-generator/graphql-maven-plugin-project. It's web site is https://graphql-maven-plugin-project.graphql-java-generator.com

Etienne



来源:https://stackoverflow.com/questions/45263838/can-apollo-android-be-used-as-a-java-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!