9

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?

Vsevolod Golovanov
  • 4,068
  • 3
  • 31
  • 65
Orville
  • 518
  • 7
  • 17

1 Answers1

8

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.

More from the original maintainer's blog

DaddyMoe
  • 990
  • 1
  • 14
  • 20
  • what do you call "Spring Graphql Common"? I can't see any such thing in the repo you pointed at... – maxxyme Oct 01 '19 at 13:51
  • OK found in *this* example: https://github.com/graphql-java-kickstart/graphql-spring-boot/tree/master/example-spring-common – maxxyme Oct 02 '19 at 16:05