All eyes on AI: 2026 predictions The shifts that will shape your stack.

Read now
For developersHow to query Graph data in Redis using JavaScript
Ajeet Raina
Ajeet Raina
END-OF-LIFE NOTICE
Redis is phasing out RedisGraphThis blog post explains the motivation behind this decision and the implications for existing Redis customers and community members.
End of support is scheduled for January 31, 2025.
Beginning with Redis Stack 7.2.x-y, Redis Stack will no longer include graph capabilities (RedisGraph).
RedisGraph is the fastest graph database that processes complex graph operations in real time, 10x – 600x faster than any other graph database. Show how your data is connected through multiple visualization integrations including RedisInsight, Linkurious, and Graphileon. Query graphs using the industry-standard Cypher query language and easily use graph capabilities from application code.

#RedisGraph JavaScript Client

Follow the steps below to get started with RedisGraph with Java:

#Step 1. Run Redis Stack Docker container

#Step 2. Verify if RedisGraph module is loaded

#Step 3. Clone the repository

#Step 4. Install the packages locally

#Step 5. Write a JavaScript code

Save the above file as "app.js".

#Step 6. Execute the Script

#Step 7. Monitor the Graph query

#Step 8. Install RedisInsight

Run the RedisInsight container. The easiest way is to run the following command:

#Step 9. Accessing RedisInsight

Next, point your browser to http://localhost:8001.

#Step 10. Run the Graph Query

You can display the number of records returned by a query:
Image

#References

  • Learn more about RedisGraph in the Quickstart tutorial.
Image