File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -16,27 +16,34 @@ repositories {
1616}
1717
1818dependencies {
19- compile 'com.graphql-java:graphql-java-servlet:2.0 .0'
19+ compile 'com.graphql-java:graphql-java-servlet:2.1 .0'
2020}
2121```
2222
2323``` xml
2424<dependency >
2525 <groupId >com.graphql-java</groupId >
2626 <artifactId >graphql-java-servlet</artifactId >
27- <version >2.0 .0</version >
27+ <version >2.1 .0</version >
2828</dependency >
2929```
3030
3131# Usage
3232
33- The servlet supports both GET and POST. For GET requests, query parameters are read.
34- In POST, plain request body containing JSON is supported, as well as a multipart upload with a part called 'graphql' containing JSON.
35-
36- All methods expect the following fields:
37- * query
38- * variables (optional)
39- * operationName (optional)
33+ The servlet supports the following request formats:
34+ * GET request with query parameters:
35+ * query
36+ * operationName (optional)
37+ * variables (optional)
38+ * POST body JSON object with fields:
39+ * query
40+ * operationName (optional)
41+ * variables (optional)
42+ * POST multipart part named "graphql" containing JSON object with fields:
43+ * query
44+ * operationName (optional)
45+ * variables (optional)
46+ * POST multipart parts named "query", "operationName" (optional), and "variables" (optional)
4047
4148## Standalone servlet
4249
You can’t perform that action at this time.
0 commit comments