While in the previous section we used Python to build a full web application whose backend database is Neo4j, in this section, we will remove the dependency on Python and build an API directly accessible from the Neo4j server.
When building APIs, a very popular framework is Representational State Transfer (REST). Even though this approach is still possible with a graph database (check, for instance, the gREST project), a different approach is becoming more and more popular – GraphQL, a query language for API.
In order to understand GraphQL, we will again use the GitHub API. In previous chapters, we used the REST version (v3). However, v4 uses GraphQL, so we should build a few queries. To do so, we can go to https://developer.github.com/v4/explorer/, which is the traditional GraphQL playground. After providing GitHub login credentials, there is a two-part window; the left panel is where we will write the query, while the...