Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Cox-Automotive/graphql-java-servlet

 
 

Repository files navigation

Build Status Maven Central

GraphQL Servlet

This module implements a GraphQL Java Servlet. It also supports Relay.js and OSGi out of the box.

Downloading

You can download it from maven central:

repositories { mavenCentral() } dependencies { compile 'com.graphql-java:graphql-java-servlet:0.10.0' }
<dependency> <groupId>com.graphql-java</groupId> <artifactId>graphql-java-servlet</artifactId> <version>0.10.0</version> </dependency>

Usage

The are a few important components this package provides:

  • GraphQLQueryProvider/GraphQLMutationProvider interfaces. These will allow you to define which "domain model" views and which mutations you are going to expose.
  • GraphQLServlet as an entry point servlet. Use bindQueryProvider/bindMutationProvider or automatically wire them in OSGi.

Both GET and POST are supported. In POST, plain request body with a JSON is supported, as well as a multipart with a part called 'graphql'.

About

Servlet endpoint for GraphQL Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%