# Match patterns and return projections

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

- Skill: `falkordb/match-patterns-and-return-projections` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add falkordb/match-patterns-and-return-projections`
- Raw SKILL.md: https://api.skillmd.com/api/skills/falkordb/match-patterns-and-return-projections/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: falkordb (https://skillmd.com/u/falkordb)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/falkordb/match-patterns-and-return-projections

---


# 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

```bash
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`)

