AS far as I know, there is no GraphQL library for Nim.

If you're ever wondering if a Nim package exists, a good place to look is the 
Nimble package list here: 
[https://github.com/nim-lang/packages/blob/master/packages.json](https://github.com/nim-lang/packages/blob/master/packages.json).

Alternatively, you can always use Nimble's built in search feature: 
[https://github.com/nim-lang/nimble#nimble-search](https://github.com/nim-lang/nimble#nimble-search)

A GRaphQL library for Nim would be pretty cool as Nim is generally lacking in 
any Database abstraction layers. There are no well maintained Nim ORMs or ODMs 
to my knowledge outside of maybe Nimongo for MongoDb. Nim does, however, ship 
with built in SQL drivers.

If you wanted to implement a GraphQL package for Nim, I would recommend 
starting by reading the documentation for the parser written in C++ here: 
[https://github.com/graphql/libgraphqlparser](https://github.com/graphql/libgraphqlparser)

Then, I would read the GraphQL spec here: 
[http://facebook.github.io/graphql/October2016/](http://facebook.github.io/graphql/October2016/)#

Then, I would take a look a look at the Python GRaphQL library, Graphene, here: 
[https://github.com/graphql-python/graphene](https://github.com/graphql-python/graphene)

I feel like it would be simple enough to essentially "copy" Graphene as Python 
and Nim share very similar syntax.

Reply via email to