The GraphQL package is one of the standard library packages of the Ballerina language.
This package provides an implementation for connecting and interacting with GraphQL endpoints over the network.
For more information, go to The GraphQL Module.
For example demonstrations of the usage, go to Ballerina By Examples.
-
Download and install Java SE Development Kit (JDK) version 11 (from one of the following locations).
-
Generate a Github access token with read package permissions, then set the following
env
variables:export packageUser=<Your GitHub Username> export packagePAT=<GitHub Personal Access Token>
Execute the commands below to build from the source.
-
To build the package:
./gradlew clean build
-
To run the tests:
./gradlew clean test
-
To run a group of tests
./gradlew clean test -Pgroups=<test_group_names>
-
To build the without the tests:
./gradlew clean build -x test
-
To debug package implementation:
./gradlew clean build -Pdebug=<port>
-
To debug with Ballerina language:
./gradlew clean build -PbalJavaDebug=<port>
As an open source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
All the contributors are encouraged to read the Ballerina Code of Conduct.
- Discuss the code changes of the Ballerina project in [email protected].
- Chat live with us via our Slack channel.
- Post all technical questions on Stack Overflow with the #ballerina tag.