问题
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