Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/networknt/light-graphql-4j

GraphQL implementation based on light-4j
https://github.com/networknt/light-graphql-4j

graphql graphql-security graphql-validator java relay relayjs security

Last synced: about 1 month ago
JSON representation

GraphQL implementation based on light-4j

Awesome Lists containing this project

README

        

GraphQL framework based on light-4j

[Stack Overflow](https://stackoverflow.com/questions/tagged/light-4j) |
[Google Group](https://groups.google.com/forum/#!forum/light-4j) |
[Gitter Chat](https://gitter.im/networknt/light-graphql-4j) |
[Subreddit](https://www.reddit.com/r/lightapi/) |
[Youtube Channel](https://www.youtube.com/channel/UCHCRMWJVXw8iB7zKxF55Byw) |
[Documentation](https://doc.networknt.com/style/light-graphql-4j/) |
[Contribution Guide](https://doc.networknt.com/contribute/) |

[![Build Status](https://travis-ci.org/networknt/light-graphql-4j.svg?branch=master)](https://travis-ci.org/networknt/light-graphql-4j)

## Components

### graphql-common
This module controls the configuration for GraphQL service and share some static variables
with other modules to make the dependencies much simpler.

### graphql-router
This module provides RouteHandler and SchemaProvider interfaces and implement both GET and
POST handlers for GraphQL.

## Middleware Handlers:

### graphql-security
This is the handler that should be put before graphql-validator. There is no need to
do any validation if JWT token does not exist in the request header.

### graphql-validator
Basic request validation for the graphql path and methods. It is the first line of
validation right after graphql-security and it doesn't have any knowledge about the
graphql query parameter and body.

## Tutorial

### [Hello World](https://doc.networknt.com/tutorial/graphql/helloworld/)

This is a very simple Hello World query to show you how to get GraphQL up and running with
light-codegen without using GraphQL IDL.

### [Star Wars](https://doc.networknt.com/tutorial/graphql/starwars/)

This is a similar example as Hello World with IDL to trigger the generation. It is utilize the
star wars GraphQL IDL downloaded from the Internet.

### [Mutation](https://doc.networknt.com/tutorial/graphql/mutation/)

This example shows you how to create a full blown GraphQL service with both query and mutation.

### [Mutation IDL](https://doc.networknt.com/tutorial/graphql/mutation-idl/)

This is the same example like the mutation but is generated from a schema.

### [Relay Todo](https://doc.networknt.com/tutorial/graphql/relay-todo/)

This is to show you how to build a GraphQL service that is working with Relayjs.