Difference in usage of graphql-java vs graphql-java-tools
Asked Answered
Z

1

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?

Zhdanov answered 18/10, 2018 at 7:11 Comment(0)
G
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

Galloot answered 8/11, 2018 at 22:47 Comment(2)
what do you call "Spring Graphql Common"? I can't see any such thing in the repo you pointed at...Scutari
OK found in this example: github.com/graphql-java-kickstart/graphql-spring-boot/tree/…Scutari

© 2022 - 2024 — McMap. All rights reserved.