Skip to content

logi/light-graphql-4j

 
 

Repository files navigation

GraphQL framework based on light-4j

Developer Chat | Documentation | Contribution Guide |

Build Status

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

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.

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.

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

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

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

About

GraphQL implementation based on light-4j

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.3%
  • Java 9.8%
  • HTML 0.9%