GQL statements
In GQL, a statement defines one or more operations that are executed as part of a procedure. Each operation updates the current context and produces a result. GQL uses leading keywords to identify different parts of a statement, without any delimiters between operations. GQL statements can be categorized into Data Definition Language (DDL), Data Query Language (DQL), Data Manipulation Language (DML), and Data Control Language (DCL).
This chapter will cover all the statements. Here’s a brief introduction to each:
- DDL: DDL allows managing schemas and graphs:
- Creating or deleting GQL schemas or directories.
- Managing graphs and graph types.
- DQL: DQL statements retrieve data using pattern matching and filtering. GQL provides a powerful set of querying constructs:
MATCHis used for graph pattern matching.FILTERrestricts matches based on conditions.LETintroduces intermediate variables...