GraphQL Java client library

梦想的初衷 提交于 2019-12-19 05:09:14

问题


I am looking for a java client library for GraphQL. This is to use for server-to-server communication, both in java. No android, not javascript... just java. Apollo is the nearest answer, and it seems like it is for Android only, not for plain-java applications. Lots of examples about build server in java, nothing about client. Any idea? Thanks!


回答1:


There's a few clients available, all taking different approaches.

  1. Apollo Android - Originally intended for Android, but equally usable in any Java project. Someone also made a Maven plugin for it.
  2. Shopify's GraphQL Java gen - Similar to what wsdl2java does, for example, but not wrapped into a Maven plugin. Generates a nice client, but requires Ruby... It's worth investigating if the Ruby dependency can be satisfied using JRuby JAR.
  3. Nodes
  4. Manifold can be used as a GraphQL client


来源:https://stackoverflow.com/questions/49087643/graphql-java-client-library

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