用于Spring Boot的GraphQL Java客户端 [英] GraphQL Java client for Spring Boot

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

问题描述

我需要从Spring Boot应用程序中调用GraphQL API(Shopify店面API),但找不到任何描述了可用于该库的资源.您可以建议图书馆吗,也可以有人描述我如何为Spring Boot应用程序设置Apollo Client以及如何从Spring Boot应用程序向Shopify运行查询/更改.感谢您的帮助.

I need to call GraphQL API (Shopify Storefront API) from my Spring Boot app and I can`t find any source where described which libraries I can use for that. Can you suggest library or can someone describe how I can setup Apollo Client for my Spring Boot app and run query/mutations from my Spring Boot app to Shopify. Your help is appreciated.

推荐答案

您可以使用 Apollo Android ,文档说它不仅适用于Android,而且适用于任何Java/Kotlin应用程序.

You could use Apollo Android, which the documentation says is not just for Android, but any Java/Kotlin application.

您也可以放学,使用Spring的HTTP POSTS并自行处理响应(但您会丢失类型安全性功能).

You could also just go old-school and use HTTP POSTS from Spring and handle the response yourself (but you would lose type-safety features).

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆