Menu

📰
0

How to use Neo4j Graph Database in your Node Project (Express, Koa, Fastify, etc.)

DEV Community: koa·Alex Merced·about 1 month ago
#nQQVsFrG
#dev#class#code#highlight#neo4j#article
Reading 0:00
15s threshold

If you haven't seen it before, I highly recommend first watch this video from fireship on 7 Different Database Paradigms . Neo4J Neo4j, a Graph Database, recently released their managed database service Aura which has a free tier. This means us developers can take Neo4J out for a proper test drive and see if this is truly the database of our dreams. In this guide I'll show you how to setup your connections and models in node so that way you can then import and use in your app. The basic idea doesn't really change from language to language. Step #1 - Setup Create a new aura account It will immediately take you to create a database, give it a name and select blank copy the login credentials given wait a few minutes for the database to generate itself once it's done spinning up copy over the DB URI under connect Step #2 - Setup Node Project create a folder for your project npm init -y Then we will install the Neo4J Object Graph Mapper (OGM) npm install @neo4j/graphql-ogm Then we will install the Neo4J drivers…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More