From 61a26ef90d61a637a4ee594e79e9c160be21b8a0 Mon Sep 17 00:00:00 2001 From: brandonbyskov Date: Fri, 5 Aug 2022 11:11:49 +0000 Subject: [PATCH 1/2] Add Spring for GraphQL to code page --- .../server/spring-graphql.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/content/code/language-support/java-kotlin-android/server/spring-graphql.md diff --git a/src/content/code/language-support/java-kotlin-android/server/spring-graphql.md b/src/content/code/language-support/java-kotlin-android/server/spring-graphql.md new file mode 100644 index 0000000000..08aec3ecc6 --- /dev/null +++ b/src/content/code/language-support/java-kotlin-android/server/spring-graphql.md @@ -0,0 +1,33 @@ +--- +name: Spring for GraphQL +description: Spring for GraphQL provides support for Spring applications built on GraphQL Java. +url: https://spring.io/projects/spring-graphql +github: spring-projects/spring-graphql +--- +Spring for GraphQL provides support for Spring applications built on +[GraphQL Java](https://www.graphql-java.com/). + +* It is a joint collaboration between the GraphQL Java team and Spring engineering. +* Our shared philosophy is to provide as little opinion as we can while focusing on comprehensive support for a wide range of use cases. +* It aims to be the foundation for all Spring, GraphQL applications. + +Features: + +* Server handling of GraphQL requests over HTTP, WebSocket, and RSocket. +* An annotation-based programming model where @Controller components use annotations to declare handler methods with flexible method signatures to fetch the data for specific GraphQL fields. For example: +```java +@Controller +public class GreetingController { + + @QueryMapping + public String hello() { + return "Hello, world!"; + } + + } +``` +* Client support for executing GraphQL requests over HTTP, WebSocket, and RSocket. +* Dedicated support for testing GraphQL requests over HTTP, WebSocket, and RSocket, as well as for testing directly against a server. + +To get started, check the Spring GraphQL starter on https://start.spring.io and the +[samples](https://docs.spring.io/spring-graphql/docs/current/reference/html/#samples) in this repository. From b373bf24eac575ecab20f9f7dcb6ea17a655be5c Mon Sep 17 00:00:00 2001 From: hwillson Date: Thu, 10 Nov 2022 09:42:43 -0500 Subject: [PATCH 2/2] Slight code formatting tweaks --- .../java-kotlin-android/server/spring-graphql.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/content/code/language-support/java-kotlin-android/server/spring-graphql.md b/src/content/code/language-support/java-kotlin-android/server/spring-graphql.md index 08aec3ecc6..7a8e87b2ae 100644 --- a/src/content/code/language-support/java-kotlin-android/server/spring-graphql.md +++ b/src/content/code/language-support/java-kotlin-android/server/spring-graphql.md @@ -8,24 +8,26 @@ Spring for GraphQL provides support for Spring applications built on [GraphQL Java](https://www.graphql-java.com/). * It is a joint collaboration between the GraphQL Java team and Spring engineering. -* Our shared philosophy is to provide as little opinion as we can while focusing on comprehensive support for a wide range of use cases. +* Our shared philosophy is to provide as little opinion as we can while focusing on comprehensive support for a wide range of use cases. * It aims to be the foundation for all Spring, GraphQL applications. Features: * Server handling of GraphQL requests over HTTP, WebSocket, and RSocket. * An annotation-based programming model where @Controller components use annotations to declare handler methods with flexible method signatures to fetch the data for specific GraphQL fields. For example: + ```java @Controller public class GreetingController { - @QueryMapping - public String hello() { - return "Hello, world!"; - } + @QueryMapping + public String hello() { + return "Hello, world!"; + } - } +} ``` + * Client support for executing GraphQL requests over HTTP, WebSocket, and RSocket. * Dedicated support for testing GraphQL requests over HTTP, WebSocket, and RSocket, as well as for testing directly against a server.