GraphQL Java client library

Hana Giat :

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!

V-Q-A NGUYEN :

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=430337&siteId=1