Using GraphQL with Neo4j Aura is very similar to using it with a local DB. However, there are a few Aura-specific twists and turns to navigate, depending on how you intend to deploy your application.
If you haven't already gotten familiar with GraphQL and Neo4j, follow the GRANDStack Starter to get familiar with the concepts using a local installation of Neo4j. Once you are comfortable with the components in a local DB, you can follow this blog post, which describes how to deploy a full GRANDStack application against Neo4j Aura in detail.
If you're just looking for the bare-bones mechanism to connect GraphQL to a Neo4j Aura instance you can also connect a Neo4j Aura DB with GraphQL via the neo4j-graphql.js package, available through NPM and/or Github. Full docs can be found on GRANDstack.io/docs.
Where the docs say
Inject a Neo4j driver instance in the context of each GraphQL request and |
Simply use a driver instance which points to the neo4j Aura instance. Note that the GraphQL Database Plugin is not currently available in Neo4j Aura, hence you must rely on an external server such as Apollo to serve your GraphQL endpoint.
Comments
0 comments
Please sign in to leave a comment.