| title | Cypher Query Language | ||||
|---|---|---|---|---|---|
| module | cypher | ||||
| id | cypher-index | ||||
| order | 0 | ||||
| description | Cypher query language guides and reference | ||||
| tags |
|
Complete guides for the Cypher query language in Nexus.
Basic Cypher syntax and patterns:
- Node patterns
- Relationship patterns
- Basic queries
- Filtering and sorting
- Aggregations
Advanced queries and patterns:
- Variable-length paths
- OPTIONAL MATCH
- Complex patterns
- Subqueries
- List and pattern comprehensions
- Map projections
All Cypher functions:
- String functions
- Mathematical functions
- Temporal functions
- List functions
- Aggregation functions
Comprehensive Cypher reference:
- All clauses
- All functions
- All operators
- Best practices
- Performance tips
// Match nodes
MATCH (n:Person) RETURN n
// Match relationships
MATCH (a:Person)-[:KNOWS]->(b:Person) RETURN a, b
// Filter
MATCH (n:Person) WHERE n.age > 25 RETURN n
// Create
CREATE (n:Person {name: "Alice", age: 30})// Count
MATCH (n:Person) RETURN COUNT(n)
// Group by
MATCH (n:Person) RETURN n.city, COUNT(n) AS count
// Order by
MATCH (n:Person) RETURN n ORDER BY n.age DESC
// Limit
MATCH (n:Person) RETURN n LIMIT 10- API Reference - REST API for Cypher
- Vector Search - Vector similarity search
- Use Cases - Real-world examples