Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/networknt/light-graphql-4j
- Owner: networknt
- License: apache-2.0
- Created: 2017-03-22T14:15:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T13:32:20.000Z (7 months ago)
- Last Synced: 2024-05-21T18:12:13.590Z (7 months ago)
- Topics: graphql, graphql-security, graphql-validator, java, relay, relayjs, security
- Language: JavaScript
- Homepage:
- Size: 827 KB
- Stars: 31
- Watchers: 20
- Forks: 9
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-graphql - Light Java GraphQL - cutting concerns addressed and ready to plug in GraphQL schema. (Libraries / Java Libraries)
- awesome-graphql - Light Java GraphQL - cutting concerns addressed and ready to plug in GraphQL schema. (Libraries / Java Libraries)
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.