Skip to content

Commit f635e7e

Browse files
Add Spring for GraphQL to code page (graphql#1261)
* Add Spring for GraphQL to code page * Slight code formatting tweaks Co-authored-by: hwillson <[email protected]>
1 parent 5e167df commit f635e7e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Spring for GraphQL
3+
description: Spring for GraphQL provides support for Spring applications built on GraphQL Java.
4+
url: https://spring.io/projects/spring-graphql
5+
github: spring-projects/spring-graphql
6+
---
7+
Spring for GraphQL provides support for Spring applications built on
8+
[GraphQL Java](https://www.graphql-java.com/).
9+
10+
* 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.
12+
* It aims to be the foundation for all Spring, GraphQL applications.
13+
14+
Features:
15+
16+
* Server handling of GraphQL requests over HTTP, WebSocket, and RSocket.
17+
* 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+
19+
```java
20+
@Controller
21+
public class GreetingController {
22+
23+
@QueryMapping
24+
public String hello() {
25+
return "Hello, world!";
26+
}
27+
28+
}
29+
```
30+
31+
* Client support for executing GraphQL requests over HTTP, WebSocket, and RSocket.
32+
* Dedicated support for testing GraphQL requests over HTTP, WebSocket, and RSocket, as well as for testing directly against a server.
33+
34+
To get started, check the Spring GraphQL starter on https://start.spring.io and the
35+
[samples](https://docs.spring.io/spring-graphql/docs/current/reference/html/#samples) in this repository.

0 commit comments

Comments
 (0)