Gel: The Graph-Relational Architecture Aiming to Obsolete the ORM

By moving object mapping into the database engine, Gel challenges the dominance of SQL and middleware ORMs.

· Editorial Team

For decades, developers have relied on Object-Relational Mappers (ORMs) like Hibernate, Prisma, or ActiveRecord to translate application logic into SQL queries. While these tools abstract away complexity, they often introduce performance bottlenecks and leaky abstractions. Gel enters the market with a "graph-relational" model designed to eliminate the need for third-party ORMs entirely by making the database schema mirror the application's object model natively.

The Architecture: Types Over Tables

At the core of Gel’s architecture is the rejection of the foreign key as the primary mechanism for data modeling. In a traditional Relational Database Management System (RDBMS), relationships are defined by matching ID columns across tables—a process that requires explicit JOIN operations to reconstruct data. Gel replaces this with a "Type + Link" model.

Under this system, data is organized into strongly typed objects rather than flat rows. Relationships are defined as direct links between these objects. This allows the database to understand the shape of the data hierarchy, supporting features like computed properties, strict indexing, and constraints without the verbose schema definitions required by standard SQL. While the underlying storage engine likely remains relational (historically built on PostgreSQL in its predecessor EdgeDB), the abstraction layer presents a graph interface to the developer.

EdgeQL: Querying Shapes, Not Rows

To support this architecture, Gel utilizes EdgeQL, a query language designed to replace SQL for application development. The primary criticism of SQL in modern development is its return format: flat rows that must be manually reassembled into nested objects by application code. EdgeQL is designed to return structured objects directly, matching the JSON or struct formats used in frontend and API layers.

The language syntax eliminates the need for JOIN clauses. Instead, developers traverse relationships using dot notation or nested shapes, allowing for deep association queries that are syntactically concise but performant. The platform also includes native, top-level support for JSON data structures, acknowledging the industry's shift toward document-relational hybrid models.

Market Position and The EdgeDB Lineage

Gel appears to be the strategic evolution and rebranding of EdgeDB, a project that pioneered the graph-relational concept. By positioning itself against both traditional RDBMS giants like PostgreSQL and newer multi-model databases like SurrealDB, Gel is targeting the "developer experience" sector of the infrastructure market.

The timing addresses a specific fatigue in the ecosystem: the complexity of managing synchronization between database schemas (SQL) and application types (TypeScript/Go/Rust). While tools like Prisma have gained widespread adoption by solving this at the application layer, Gel argues the solution belongs in the database layer itself.

Strategic Risks and Limitations

Despite the ergonomic promises, Gel faces the classic hurdles of any non-SQL database technology. The requirement to learn EdgeQL represents a significant barrier to entry compared to the ubiquity of SQL. Furthermore, the ecosystem maturity of a new (or rebranded) entrant cannot match the decades of tooling, optimization, and talent available for PostgreSQL or MySQL.

For engineering leaders, the decision to adopt Gel involves weighing the immediate velocity gains of its object model against the long-term risks of vendor lock-in and a smaller talent pool. While the "Type + Link" model theoretically solves the impedance mismatch, it requires a total commitment to the Gel ecosystem, unlike ORMs which can be swapped out over standard SQL databases.

Sources