• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

graphqlize/graphqlize: A Clojure & JVM library for developing GraphQL API in ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

graphqlize/graphqlize

开源软件地址(OpenSource Url):

https://github.com/graphqlize/graphqlize

开源编程语言(OpenSource Language):

Clojure 100.0%

开源软件介绍(OpenSource Introduction):

GraphQLize

GraphQLize, an open-source Clojure (JVM) library for developing GraphQL API instantly from your existing PostgreSQL and MySQL databases.

It aims to simplify the effort required to expose GraphQL APIs over relational databases.

Clojars Project

GraphQLize is at its early stages now. The objective of this early release is to get early feedback from the community. It is not production-ready yet!

Rationale

In the JVM ecosystem, developing GraphQL APIs to expose the data from the relational databases requires a lot of manual work. Right from defining the GraphQL schemas (either code-first or schema-first) to wiring them with resolvers and the database access logic, we spend a significant amount of our development time.

In addition to this, we also need to take care of optimizing the underlying SQL queries to avoid problems like N+1 queries. We have to account the maintenance of the resulting codebase as well!

GraphQLize will help you to overcome all these shortcomings. It provides you with an efficient GraphQL implementation in just few lines of code.

What is GraphQLize?

GraphQLize is a JVM library written in Clojure with Java interoperability. The crux of GraphQLize is generating the GraphQL schema and resolving the queries by making use of JDBC metadata provided by the JDBC drivers.

It currently supports Postgres (9.4 & above) and MySQL (8.0 & above).

Getting Started

Getting started with GraphQLize is simple and involves only a few steps.

  1. Add the GraphQLize dependency in your project.
  2. Initialize GraphQLize Resolver by providing the Java SQL data source.
  3. Add a GraphQL API endpoint and use the initialized GraphQlize Resolver in the previous step.

The actual implementation of these steps will vary based on which language (Java, Clojure) and framework (Spring Boot, Spark Java, Pedestal, etc.). Please refer the below links for more details.

Langauge Framework(s)
Java Spring Boot, Spark Java, Vanilla Java
Kotlin Spring Boot, Ktor
Clojure Pedestal, Ring, Vanilla Clojure
Scala Scalatra

Is It Production Ready?

It will be in a few months.

The objective of this alpha release is to get early feedback from the community.

There are close to forty issues that I am planning to work on in the upcoming months to make it production ready.

You can keep track of the progress by

How can I contribute?

GraphQLize is at its early stage now, and the codebase and the APIs are not stable yet.

So, at this instant, the best way to contribute is to initiate a chat in GraphQLize's Discord channel or raise a GitHub issue with all the relevant details, and we'll take it from there.

Oracle & SQL Server Support

One of the design goal of GraphQLize from day one is to support Postgres, MySQL, Oracle & MS SQL Server. To start with, I am focussing on getting it to a production ready state for Postgres & MySQL. After accomplishing this, I will be focusing on the other two.

Acknowledgements

PostgREST, PostGraphile, KeyStoneJs and Hasura are the inspiration behind GraphQLize.

GraphQLize is not possible without the following excellent Clojure libraries.

The samples in the documentation of GraphQLize uses the Sakila database from JOOQ extensively.

License

The use and distribution terms for this software are covered by the Eclipse Public License - v 2.0. By using this software in any fashion, you are agreeing to be bound by the terms of this license.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
steven-isbell/graphql-starter发布时间:2022-06-22
下一篇:
benawad/typescript-graphql-crud-example发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap