Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference in usage of graphql-java vs graphql-java-tools

Im new to graphql found 2 java implementation using from official graphql: https://www.graphql-java.com/documentation/v10/

and

https://github.com/graphql-java-kickstart/graphql-java-tools

Like whats their difference in implementing graphql in java?

like image 499
Orville Avatar asked Oct 18 '18 07:10

Orville


1 Answers

In Short:

graphql-java:

  • Is an implementation of graphQL in java based on the Javascript reference implementation here. This project use to host a suit of graphql related tools for the java ecosystem including graphql-java-tools. See at the end of this answer for more

graphql-java-tools:

  • Is a Java GraphQL helper library that aids development of GraphQL schema language for your graphql-java API. One example is auto-configuration of classes for creating a GraphQLSchema. See more from official documentation here. Similarly another useful library I will recommend is spring-graphql-common

See this example Spring Boot Project that puts it all together:

  • GraphQL - Java Implementation
  • GraphiQL - Workbench Gui with auto-complete assists based on your schema
  • Graphql java tools - Library
  • Spring Graphql Common - Library

Furthermore graphql-Java is currently only focussed on Java not the tooling projects. These have been moved to their dedicated organisations.

  • graphql-spring-boot
  • graphql-java-tools
  • graphql-java-servlet
  • graphql-java-annotations
  • graphql-java-type-generator

More from the original maintainer's blog

like image 159
DaddyMoe Avatar answered Sep 22 '22 09:09

DaddyMoe