Modifying catalogs
Now that you’re familiar with GQL statements, it’s time to explore how GQL catalogs are managed. This includes working with schemas, graphs, and graph types—key components of the GQL catalog structure.
GQL provides CREATE statements for defining new GQL schemas and graphs and corresponding DROP statements for removing them. As mentioned in Anchor 3, Key Concepts of GQL, both schemas and graphs are regarded as GQL objects within its hierarchical catalog design system.
In this section, you’ll focus on how to create and drop GQL schemas.
CREATE and DROP GQL schema
A GQL schema serves as a logical workspace that contains graphs, graph types, binding tables, and named procedures. It helps users manage their graph data in independent domains.
Creating a GQL schema
A GQL schema can be created at the root of a GQL catalog or within a GQL directory.
To create a GQL schema, use the following syntax:
CREATE SCHEMA...