Dgraph

active

by Istari Digital · since 2016 · also known as Dgraph Labs

Distributed, horizontally scalable graph database in Go with native GraphQL and DQL.

graphvectordatabase engineopen source (permissive)mature

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

✓Transactions
✓Secondary indexes
✓Full-text search
✓Vector search
✓Geospatial
✓JSON
✓Change data capture
✓Durable persistence
✓Compression
✓Encryption at rest
✓Role-based access
✓Online schema changes
–Joins
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Time travel
–Branching
–Streaming ingest
–Offline sync
–Runs in WebAssembly

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

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsgRPC, HTTP, GraphQL endpoint
client languagesGo, Java, JavaScript, Python, C#

Alternatives to Dgraph

Compare all→
Neo4jGraph61.2

The default property-graph database, with Cypher, a big ecosystem and a managed cloud.

dgraph vs neo4j →
NebulaGraphGraph18.1

Shared-nothing distributed graph database for trillion-edge graphs, with GQL in Enterprise v5.

dgraph vs nebulagraph →
SurrealDBDocument28.8

Rust multi-model database (documents, graph, vectors, live queries) that runs embedded, in WASM or clustered.

dgraph vs surrealdb →
ArangoDBGraph40.0

Native multi-model database: documents, graphs, search and vectors behind one query language.

dgraph vs arangodb →
JanusGraphGraph25.2

Open-source distributed graph database layered on Cassandra, HBase, ScyllaDB or Bigtable.

dgraph vs janusgraph →
TypeDBGraph27.0

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.