Dgraph
activeby Istari Digital · since 2016 · also known as Dgraph Labs
Distributed, horizontally scalable graph database in Go with native GraphQL and DQL.
Overview
Dgraph is an open-source distributed graph database written in Go that shards data by predicate across Raft groups and serves both a native GraphQL API (generated from your schema) and its own DQL query language. It provides distributed ACID transactions, full-text, geo and HNSW vector indexes, all now under Apache 2.0 after former enterprise features were opened up. Ownership changed twice: Hypermode acquired Dgraph Labs in 2024 and sold Dgraph to Istari Digital in October 2025, which committed to keep the open-source project going; v25 releases continue. It suits app backends that want GraphQL-native data with graph traversal, less so heavy analytics.
Strengths & trade-offs
Strengths
- +Native GraphQL: define a schema and get a working CRUD API without a resolver layer
- +Distributed ACID transactions with linearizable reads across shards
- +Predicate-based sharding with automatic tablet rebalancing
- +Fully Apache 2.0, including ACLs, encryption at rest and CDC
- +Built-in full-text, geo, regex and HNSW vector indexes
Trade-offs
- −Two ownership changes since 2024 add uncertainty about long-term direction
- −DQL is unique to Dgraph, so skills and queries do not transfer
- −Predicate sharding makes very high-degree predicates hot spots
- −Weaker for whole-graph analytics compared with dedicated analytics engines
Great for
- +GraphQL application backends
- +Knowledge graphs and content relationships
- +Real-time recommendations
- +Metadata and lineage graphs
- +Semantic search with vectors
Think twice for
- −Cypher, Gremlin or SPARQL users
- −Heavy whole-graph algorithms
- −Tiny embedded use
Capabilities
Native or official first-party support · 12 of 25 tracked
Scale & consistency
- Comfortable data size
- Large · ≤ 1 PB
- Horizontal scaling
- Native
- Multi-region
- No
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Flexible
- Architecture
- Distributed, Client server
- Query languages
- DQL, GraphQL
Predicates are sharded across Alpha groups with Raft replication; Zero nodes rebalance tablets automatically.
Deployment
Ecosystem
Alternatives to Dgraph
The default property-graph database, with Cypher, a big ecosystem and a managed cloud.
dgraph vs neo4j →Shared-nothing distributed graph database for trillion-edge graphs, with GQL in Enterprise v5.
dgraph vs nebulagraph →Rust multi-model database (documents, graph, vectors, live queries) that runs embedded, in WASM or clustered.
dgraph vs surrealdb →Native multi-model database: documents, graphs, search and vectors behind one query language.
dgraph vs arangodb →Open-source distributed graph database layered on Cassandra, HBase, ScyllaDB or Bigtable.
dgraph vs janusgraph →Strongly typed entity-relation database with TypeQL, polymorphic queries and a Rust core.
dgraph vs typedb →Dgraph FAQ
What is Dgraph?
Dgraph is a graph database by Istari Digital, first released in 2016. Dgraph is an open-source distributed graph database written in Go that shards data by predicate across Raft groups and serves both a native GraphQL API (generated from your schema) and its own DQL query language. It provides distributed ACID transactions, full-text, geo and HNSW vector indexes, all now under Apache 2.0 after former enterprise features were opened up. Ownership changed twice: Hypermode acquired Dgraph Labs in 2024 and sold Dgraph to Istari Digital in October 2025, which committed to keep the open-source project going; v25 releases continue. It suits app backends that want GraphQL-native data with graph traversal, less so heavy analytics.
Is Dgraph open source?
Yes. Dgraph is open source. License: Apache License 2.0.
Does Dgraph support ACID transactions?
Yes. Dgraph supports full ACID transactions, with strong consistency.
Does Dgraph scale horizontally?
Dgraph scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at large scale (≤ 1 PB).
How can I run Dgraph?
You can self-host it.
What is Dgraph best for?
Dgraph is a strong fit for GraphQL application backends; knowledge graphs and content relationships; and real-time recommendations. Think twice for cypher, Gremlin or SPARQL users.
What are the best alternatives to Dgraph?
Common alternatives to Dgraph include Neo4j, NebulaGraph, SurrealDB, ArangoDB and JanusGraph. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is Dgraph?
Dgraph ranks #137 of 844 databases on the WhichDB Score (22.4/100), and #10 among graph databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.


