本文介绍了GraphQL Java客户端库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找GraphQL的Java client 库.两者均用于Java中的服务器到服务器通信.没有android,没有javascript ...只是java.阿波罗(Apollo)是最接近的答案,似乎仅适用于Android,而不适用于纯Java应用程序.有很多关于用Java构建服务器的例子,没有关于客户端的例子.任何的想法?谢谢!

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!

推荐答案

有一些可用的客户端,它们都采用不同的方法.

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

  1. Apollo Android -最初用于Android,但在任何Java项目中同样可用.有人还为此制作了一个 Maven插件.
  2. Shopify的GraphQL Java gen -类似于例如,wsdl2java确实存在,但没有包装到Maven插件中.生成一个不错的客户端,但是需要Ruby ...值得研究使用JRuby JAR是否可以满足Ruby依赖项.
  3. 节点
  4. Manifold 可以用作GraphQL客户端
  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 whatwsdl2java 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

这篇关于GraphQL Java客户端库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 05:07