Nim implementation of GraphQL with sugar and steroids
Go to file
jangko 4d67fd682c
add parseVars API
2021-04-16 22:21:36 +07:00
.github/workflows install toml_serialization in github action script 2021-03-09 12:44:12 +07:00
docs add parseVars API 2021-04-16 22:21:36 +07:00
fuzzer add fuzzer for lexer and parser 2021-03-29 19:26:11 +07:00
graphql add parseVars API 2021-04-16 22:21:36 +07:00
playground add parseVars API 2021-04-16 22:21:36 +07:00
resources add graphql logo 2021-02-15 12:12:07 +07:00
tests add parseVars API 2021-04-16 22:21:36 +07:00
.gitignore initial commit 2021-02-15 11:06:34 +07:00
LICENSE-APACHEv2 initial commit 2021-02-15 11:06:34 +07:00
LICENSE-MIT initial commit 2021-02-15 11:06:34 +07:00
README.md add how to run playground server to readme.md 2021-04-13 08:18:34 +07:00
graphql.nim add custom coercion for enum and scalars 2021-04-16 21:02:27 +07:00
graphql.nimble include playground server build in nimble file 2021-04-14 22:28:07 +07:00

README.md

nim-graphql

GraphQL Logo

License: Apache License: MIT Github action

Introduction

Enjoy writing graphql service in plain Nim!. You decide when to use more syntactic sugars offered by Nim templates. And you can choose whether you want to use macros or not, we don't impose them to you.

Designed from ground up to be easily tested part by part, you can quickly implement your service while writing a comprehensive test suite for it.

You can choose which transport mechanism to deliver your service. Over http or secure-http, websocket or secure-websocket, ipc or rpc, rawsocket, and OS stdin/stdout. Not all of these mechanisms provided by nim-graphql, but the freedom is there.

Documentation

If you are interested in contributing to nim-graphql development, the official specification is here.

If you want to know how to use nim-graphql or how nim-graphql works, the documentation is available here.

Playground

You can play with our playground graphql http server using graphql client such as Altair GraphQL client because currently we don't have time to provide a fancy built in interface for our playground server.

  • Using Starwars schema/api.
$ nimble starwars

or

$ nim c -r playground/swserver starwars
  • Using Ethereum schema/api.
$ nimble ethereum

or

$ nim c -r playground/swserver ethereum

The server is accessible at this address http://127.0.0.1:8547/graphql

Installation

You can use Nim's official package manager Nimble to install nim-graphql:

$ nimble install https://github.com/status-im/nim-graphql.git

or

$ nimble install graphql

Contributing

When submitting pull requests, please add test cases for any new features or fixes and make sure nimble test is still able to execute the entire test suite successfully.

License

Licensed and distributed under either of

or

at your option. These files may not be copied, modified, or distributed except according to those terms.