anjaleeps / module-ballerina-graphql

This is the Ballerina GraphQL module, which is a part of Ballerina Language Standard Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ballerina GraphQL Library

Build GitHub Last Commit Github issues License

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.

Building from the Source

Setting Up the Prerequisites

  1. Download and install Java SE Development Kit (JDK) version 11 (from one of the following locations).

    • Oracle

    • OpenJDK

      Note: Set the JAVA_HOME environment variable to the path name of the directory into which you installed JDK.

  2. 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>
    

Building the Source

Execute the commands below to build from the source.

  1. To build the package:

    ./gradlew clean build
    
  2. To run the tests:

    ./gradlew clean test
    
  3. To run a group of tests

    ./gradlew clean test -Pgroups=<test_group_names>
    
  4. To build the without the tests:

    ./gradlew clean build -x test
    
  5. To debug package implementation:

    ./gradlew clean build -Pdebug=<port>
    
  6. To debug with Ballerina language:

    ./gradlew clean build -PbalJavaDebug=<port>
    

Contributing to Ballerina

As an open source project, Ballerina welcomes contributions from the community.

For more information, go to the contribution guidelines.

Code of Conduct

All the contributors are encouraged to read the Ballerina Code of Conduct.

Useful Links

About

This is the Ballerina GraphQL module, which is a part of Ballerina Language Standard Library

License:Apache License 2.0


Languages

Language:Ballerina 80.1%Language:Java 19.9%