๐ Learning and exploring the "GraphQL Java" framework (https://www.graphql-java.com/).
The Java implementation of GraphQL
NOTE: This project was developed on macOS. It is for my own personal use.
I've been sleeping on GraphQL for years but it has only exploded in popularity, feature richness and I think overall goodness. I need to learn it. This project is me doing that.
This repository illustrates different concepts, patterns and examples via standalone sub-projects. Each sub-project is completely independent of the others and do not depend on the root project. This standalone sub-project constraint forces the sub-projects to be complete and maximizes the reader's chances of successfully running, understanding, and re-using the code.
The sub-projects include:
A simple GraphQL Java program where the schema is defined in a Schema Definition Language (SDL) file.
See the README in sdl/.
A simple GraphQL program where the schema is defined programmatically in Java code.
See the README in programmatic/.
An intermediate GraphQL Java program where the schema is defined by a hybrid of the SDL file and programmatically in Java code.
See the README in hybrid/.
An advanced GraphQL Java example program that defines and implements custom directives like @gp_uppercase
and @gp_sort
using
a bespoke ExecutionStrategy. It also uses a web server.
See the README in custom-directives/.
A GraphQL Java program that defines custom instrumentation code for logging purposes.
See the README in instrumentation/.