GraphQL Mesh – Access services using different API spec with GraphQL queries

栏目: IT技术 · 发布时间: 4年前

内容简介:The Guild is an open-source group focused on enabling developers to maximize the benefits offered by GraphQL.and other useful packages. A couple of days ago the Guild revealed their latest project -I believe this library may solve one of the most important

The Guild is an open-source group focused on enabling developers to maximize the benefits offered by GraphQL. The Guild stands behind such notable GraphQL libraries as:

  • GraphQL Code Generator
  • GraphQL Inspector
  • GraphQL-CLI

and other useful packages. A couple of days ago the Guild revealed their latest project - GraphQL Mesh .

GraphQL Mesh

I believe this library may solve one of the most important issues standing in the way of global GraphQL adoption which is a fear of the unknown. The reason many developers haven’t decided to try GraphQL is some uncertainty about the possible implementation issues that might arise during the transition process, with GraphQL Mesh you can easily use GraphQL specification with legacy API services!

GraphQL Mesh – Access services using different API spec with GraphQL queries

Source: Medium/The-Guild

How it works

GraphQL Meshis an open-source library with a goal to provide developers access to services using other API specifications like openapi/Swagger, json-schema, SOAP, gRPC, SQL, Mongoose, GraphQL, Federated GraphQL, queue systems, SQL with GraphQL queries, mutations & subscriptions without changing the source service.

In short GraphQL Mesh takes your existing services’ APIs specification and tries wrapping it with a GraphQL layer. But it doesn’t stop here. GraphQL Mesh allows you to easily extend or modify your new schema, providing a fully-typed GraphQL SDK. This makes working with your new schema a lot easier as you are sure on any step that you are using the right object structure.

Local schema vs Gateway

The output of GraphQL Mesh is a generated code that you can use both ways as:

  • Local Schema - import it from the autogenerated directory and use GraphQL execute to run queries and mutations locally in your application putting GraphQL engine in charge of fetching & running data from your source API.
  • Gateway - use your new schema as a shared gateway for multiple applications and run it on your own server which would be responsible for all schema operations.

Whatever you prefer to make sure to check a detailed description of how it works & usage examples provided by the Guild & keep in mind that GraphQL Mesh is in still its early stage so there might some breaking changes coming.

Guild members have been using GraphQL Mesh for a while internally for their customers and they claim it has been a huge upgrade. If anything was holding you back from trying GraphQL now you have lost your excuse! Try GraphQL Mesh today :)


以上所述就是小编给大家介绍的《GraphQL Mesh – Access services using different API spec with GraphQL queries》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Reversing

Reversing

艾拉姆(Eilam,E.) / 韩琪、杨艳、王玉英、李娜 / 电子工业出版社 / 2007-9 / 79.00元

本书描述的是在逆向与反逆向之间展开的一场旷日持久的拉锯战。作者Eldad Eilam以一个解说人的身份为我们详尽地评述了双方使用的每一招每一式的优点与不足。 书中包含的主要内容有:操作系统的逆向工程;.NET平台上的逆向工程;逆向未公开的文件格式和网络协议;逆向工程的合法性问题;拷贝保护和数字版权管理技术的逆向工程;防止别人对你的代码实施逆向工程的各种技术;恶意程序的逆向工程;反编译器的基本......一起来看看 《Reversing》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具