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

Read now
For developersHow to query Graph data in Redis using Go
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 Go Client

The redisgraph-go is a Golang client for the RedisGraph module. It relies on redigo for Redis connection management and provides support for RedisGraph's QUERY, EXPLAIN, and DELETE commands.
Follow the steps below to get started with RedisGraph with Go:

#Step 1. Run Redis Stack Docker container

#Step 2. Verify if RedisGraph module is loaded

#Step 3. Loading the RedisGraph Module

#Step 4. Clone the repository

#Step 5. Running the Test suite

#Step 6. Running the Go Program

#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 use the limit clause to limit the number of records returned by a query:
GRAPH.QUERY "social" "MATCH (n) RETURN n"
Image

#References

  • Learn more about RedisGraph in the Quickstart tutorial.
Image