Skip to content

Commit b373bf2

Browse files
committed
Slight code formatting tweaks
1 parent 61a26ef commit b373bf2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/content/code/language-support/java-kotlin-android/server/spring-graphql.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,26 @@ Spring for GraphQL provides support for Spring applications built on
88
[GraphQL Java](https://www.graphql-java.com/).
99

1010
* It is a joint collaboration between the GraphQL Java team and Spring engineering.
11-
* Our shared philosophy is to provide as little opinion as we can while focusing on comprehensive support for a wide range of use cases.
11+
* Our shared philosophy is to provide as little opinion as we can while focusing on comprehensive support for a wide range of use cases.
1212
* It aims to be the foundation for all Spring, GraphQL applications.
1313

1414
Features:
1515

1616
* Server handling of GraphQL requests over HTTP, WebSocket, and RSocket.
1717
* 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:
18+
1819
```java
1920
@Controller
2021
public class GreetingController {
2122

22-
@QueryMapping
23-
public String hello() {
24-
return "Hello, world!";
25-
}
23+
@QueryMapping
24+
public String hello() {
25+
return "Hello, world!";
26+
}
2627

27-
}
28+
}
2829
```
30+
2931
* Client support for executing GraphQL requests over HTTP, WebSocket, and RSocket.
3032
* Dedicated support for testing GraphQL requests over HTTP, WebSocket, and RSocket, as well as for testing directly against a server.
3133

0 commit comments

Comments
 (0)