Neo4j Queries Guide
Neo4j Queries Guide
1. Basic Commands
• Create a Node:
• Create a Relationship:
• Filter by Property:
• Multiple Conditions:
3. Updating Data
• Update a Node:
1
MATCH (p:Person {name: 'John'}) SET p.age = 35
• Add Property:
• Remove Property:
4. Deleting Data
• Delete a Relationship:
• Order by Property:
• Limit Results:
2
MATCH (p:Person) RETURN p LIMIT 5
7. Aggregate Functions
• Count:
8. Pattern Matching
• Match Relationship:
3
11. Indexing & Constraints
• Create Index:
• PageRank Example:
Let me know if you want this converted to PDF or want advanced queries for real-world use cases.