Auto-Generate GraphQL for ArangoDB

03GeneralTags: ,

Currently, querying ArangoDB with GraphQL requires building a GraphQL.js schema. This is tedious and the resulting JavaScript schema file can be long and bulky. Here we will demonstrate a short proof of concept that reduces the user related part to only defining the GraphQL IDL file and simple AQL queries.

The Apollo GraphQL project built a library that takes a GraphQL IDL and resolver functions to build a GraphQL.js schema. Resolve functions are called by GraphQL to get the actual data from the database. I modified the library in the way that before the resolvers are added, I read the IDL AST and create resolver functions. Read more

Arangochair – a tool for listening to changes in ArangoDB

02GeneralTags: , , ,

The ArangoDB team gave me an opportunity to write a tutorial about arangochair. Arangochair is the first attempt to listen for changes in the database and execute actions like pushing a document to the client or execute an AQL query. Currently it is limited to single nodes.

This tutorial is loosely based on the example at baslr/arangochair-serversendevents-demo

arangochair is a Node.js module hosted on npm which make it fairly easy to install. Just run
npm install arangochair and its installed. Read more

Arangoexport – a tool for exporting data from ArangoDB

00GeneralTags: ,

With the release of the initial alpha of ArangoDB version 3.2 we also include the preview of the new export tool arangoexport. Alpha2 of ArangoDB 3.2 can be downloaded here. An export functionality was initially requested by one of our community members to view an ArangoDB graph view the Cytoscape visualizer.

Arangoexport is capable of exporting a graph or certain collections of a graph to xgmml, Cytoscape’s graph format. But arangoexport is not limited to this. It can also generate JSON or JSONL data exports of arbitrary collections. Read more

Do you like ArangoDB?
icon-githubStar this project on GitHub.
close-link