match-patterns-and-return-projections

star 21

Match nodes by label and properties using MATCH, then return specific fields from query results

FalkorDB By FalkorDB schedule Updated 2/4/2026

name: Match patterns and return projections description: Match nodes by label and properties using MATCH, then return specific fields from query results

Match patterns and return projections

Match nodes by label and properties, then return specific fields from the query results.

Usage

Use MATCH to find nodes and relationships based on patterns, then use RETURN to project specific properties.

Example

redis-cli GRAPH.QUERY social "MATCH (alice:User {name: 'Alice'})-[:FRIENDS_WITH]->(friend)
RETURN friend.name"

Notes

  • MATCH accepts label filters (:User) and property filters ({name: 'Alice'})
  • Relationship patterns are specified between nodes using -[:RELATIONSHIP_TYPE]->
  • RETURN allows you to select specific properties to return from matched nodes
  • Use dot notation to access node properties (e.g., friend.name)
Install via CLI
npx skills add https://github.com/FalkorDB/skills --skill match-patterns-and-return-projections
Repository Details
star Stars 21
call_split Forks 2
navigation Branch main
article Path SKILL.md
More from Creator