GQL (Graph Query Language), aka Graph Query Language, is a query language created in 2024.
| #664on PLDB | 2Years Old |
GQL (Graph Query Language) is a standardized query language for property graphs first described in ISO/IEC 39075, released in April 2024 by ISO/IEC. GQL is a declarative language designed to query and update property graph databases, playing a similar role to SQL for relational databases. Property graphs store data as nodes (entities) and edges (relationships), each optionally having labels and properties. Read more on Wikipedia...
// Find all friends of Alice and return their names
MATCH (p:Person {name: 'Alice'})-[:KNOWS]->(friend:Person)
RETURN friend.name AS nameALL AND ANY AS ASC BY CALL CASE COUNT CREATE CURRENT DELETE DESC DETACH DISTINCT DROP ELSE END EXISTS FALSE FILTER FOR FROM GRAPH GROUP HAVING IN INSERT INTO IS KEEP LABEL LET LIKE LIMIT MATCH MERGE NEXT NOT NULL OF ON OPTIONAL OR ORDER PATH PATHS PROPERTY REMOVE RETURN SET SHORTEST SIMPLE SINGLE SKIP SOME THEN TRUE TRAIL UNION UNIQUE UNWIND USING WALK WHERE WITH XOR YIELD| Feature | Supported | Example | Token |
|---|---|---|---|
| Fixed Point Numbers | ✓ | ||
| Integers | ✓ | ||
| Booleans | ✓ | TRUE FALSE | |
| Strings | ✓ | "Hello world" | " |
| Case Insensitive Identifiers | ✓ | ||
| MultiLine Comments | ✓ | /* A comment */ | /* */ |
| Line Comments | ✓ | // A comment | // |
| Comments | ✓ | ||
| Case Sensitivity | X | ||
| Semantic Indentation | X |