Skip to content

Commit dbcb0c6

Browse files
committed
Add Ballerina language and ballerina-graphql to language support
1 parent 4a919d3 commit dbcb0c6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
name: ballerina-graphql
3+
description: The Ballerina Standard Library Package for consume GraphQL services.
4+
url: https://lib.ballerina.io/ballerina/graphql/latest
5+
github: ballerina-platform/module-ballerina-graphql
6+
---
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: ballerina-graphql
3+
description: The Ballerina Standard Library Package for write GraphQL services.
4+
url: https://lib.ballerina.io/ballerina/graphql/latest
5+
github: ballerina-platform/module-ballerina-graphql
6+
---
7+
8+
To run a `ballerina-graphql` hello world server:
9+
10+
- Download and install [Ballerina Language](https://ballerina.io/downloads)
11+
- Then run `bal run graphql.bal` to run the service, with with this code in the `graphql.bal` file:
12+
13+
```ballerina
14+
import ballerina/graphql;
15+
16+
service on new graphql:Listener(9090) {
17+
resource function get hello() returns string {
18+
return "Hello, world!";
19+
}
20+
}
21+
```
22+
23+
## Features
24+
- Built with Ballerina `service` and `listener` model, which are first-class citizens in Ballerina
25+
- Supports subscriptions over websocket (No additional libraries needed)
26+
- Supports file upload
27+
- Built-in GraphiQL client
28+

0 commit comments

Comments
 (0)