File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
src/content/code/language-support/ballerina Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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
+ ---
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments