• Products
    Services
    Database
    Meet TypeDB and TypeQL
    Enterprise
    Host TypeDB in your own environment
    Community Edition
    The open-source edition of TypeDB
    Platform
    Cloud
    Scale effortlessly on our cloud platform
    Tools
    Studio
    Build with our live web studio
    Console
    Build in the terminal
    Driver SDKs
    Integrate your apps and services
    • What is TypeDB?
      Read article
    • Why TypeDB?
      Read article
    • Start building
      Go to dashboard
  • Solutions
    By use case
    Cyber threat intelligence
    TypeDB in CTI
    Agentic systems
    TypeDB in agentic systems and AI
    Knowledge graphs
    TypeDB as a knowledge graph
    By industry
    Financial intelligence
    TypeDB in financial intelligence
    Robotics
    TypeDB in autonomous robots
    Startup program
    Are you a builder or breaker?
    Code examples
    Samples built on real-world use cases
  • Learn
    Learn
    TypeDB Docs
    Browse TypeDB's developer docs
    Learn TypeDB
    Hands-on learning guides
    Use cases
    Real-world TypeDB use cases
    Guides
    Guides for specific TypeDB tasks
    Content
    Blog
    Dev blogs, news, and insights
    Research
    Academic research papers
    Videos
    Be sure to like and subscribe
    TypeDB Academy
    An end-to-end learning experience
    Enterprise support
    Dedicated support for your business
    Community chat server
    Live chat with our Discord community
  • Pricing
    4.4k
  • Get in touch
  • Sign in
  • Start building

Docs Home

Ask TypeDB AI
TypeDB 2.x
  • TypeDB 3.x (current)
     
  • TypeDB 2.x
     
  • Get Started

    • Docs home
    • Get started
    • Install tools
    • Quickstart
    • Crash course
      • New database users
      • Relational database users
      • Graph database users
  • Manual

    • TypeDB Manual
    • TypeDB Console
    • TypeDB Studio
    • Connecting to TypeDB
      • Connect to server
      • Create a database
      • Open a session
      • Open a transaction
    • Defining schemas
      • Define query
      • Undefine query
      • Schema editing
    • Writing data
      • Insert query
      • Delete query
      • Update query
    • Reading data
      • Fetch query
      • Get query
      • Inference
    • Transactions
    • Programming objects
      • Schema objects
      • Data objects
      • Explanation objects
    • Bulk loading
      • Formatting data
      • Preventing duplication
      • Optimizing speed
    • Configuring servers
      • Config file
      • Server arguments
      • Logs
      • Export and import
      • Upgrades
      • Users
    • Error codes
      • TypeDB error codes
      • TypeQL error codes
      • TypeDB drivers error codes
    • Self-managed deployments
      • TypeDB Enterprise
  • Drivers

    • TypeDB Drivers
    • Rust driver
      • Tutorial
      • API reference
    • Python driver
      • Tutorial
      • API reference
    • Node.js driver
      • Tutorial
      • API reference
    • Java driver
      • Tutorial
      • API reference
      • Query builder
    • C# driver
      • Tutorial
      • API reference
    • C++ driver
      • Tutorial
      • API reference
    • C driver
      • Tutorial
      • API reference
  • TypeQL

    • TypeQL
    • Introduction
    • Queries
      • Define
      • Undefine
      • Insert
      • Delete
      • Update
      • Fetch
      • Get
    • Patterns
      • Conjunction
      • OR
      • NOT
      • Matching patterns
    • Statements
      • isa
      • is
      • has
      • sub
      • type
      • abstract
      • owns
      • value
      • regex
      • relates
      • plays
      • rule
      • @key
      • @unique
      • role assignment
      • value assignment
    • Modifiers
      • Sorting
      • Pagination
      • Aggregation
      • Grouping
    • Concepts
      • Types
      • Data instances
      • Concept variables
    • Values
      • Value types
      • Value variables
      • Comparators
      • Arithmetic
      • Built-in functions
    • Keywords
  • TypeDB Academy

    • Course overview
    • 1. Introduction to TypeDB
    • 2. Environment setup
      • Sample deployment
      • Using TypeDB Studio
    • 3. Reading data
      • Fetching simple data
      • Fetching polymorphic data
      • Fetching inferred data
      • Fetching schema types
      • Query validation
      • Summary
    • 4. Writing data
      • Inserting simple data
      • Inserting polymorphic data
      • Deleting data
      • Updating data
      • Data validation
      • Summary
    • 5. Defining schemas
      • Defining individual types
      • Defining type hierarchies
      • Defining constraints
      • Defining rules
      • Schema validation
      • Summary
    • 6. Building applications
      • Driver setup
      • Managing databases
      • Sessions and transactions
      • Executing queries
      • Processing results
      • Summary
    • Fundamentals - Summary
    • 7. Understanding query patterns
      • Patterns as constraints
      • Relation patterns
      • Logical operators
      • Value comparisons
      • Value expressions
      • Solution set semantics
      • Summary
    • 8. Structuring query results
      • Fetching attributes
      • Subqueries
      • Aggregations
      • Sorting and pagination
      • Summary
    • 9. Modeling schemas
      • The PERA model
      • Determining object types
      • Avoiding data redundancies
      • Using type hierarchies
      • Composition over inheritance
      • Using interface hierarchies
      • Avoiding interface redundancies
      • Summary
    • 10. Using inference
      • Rules as views
      • Rule chaining
      • Rule branching
      • Summary
    • Intermediate - Summary
    • 11. Manipulating stateful objects
      • Retrieval by query
      • Programmatic retrieval
      • Operating on objects
      • Summary
    • 12. Advanced modeling
      • Using dependent types
      • Using type-theoretic relations
      • Reifying interfaces
      • Using interface contracts
      • Summary
    • Advanced - Summary

Error codes

This documentation is not current - it is for TypeDB 2.x, which is no longer supported. View the documentation for TypeDB 3.x:

  • Read the latest docs (TypeDB 3.x)

  • What’s new in TypeDB 3.x

  • Migration guide: TypeDB 2.x to 3.x

TypeDB

TypeDB server-side error codes reference.

TypeQL

TypeQL error reference.

Drivers

TypeDB drivers client-side error reference.

Users TypeDB error codes
Edit on GitHub Edit this page on GitHub.
Subscribe to Newsletter
undefinedDiscordYouTubeLinkedIn

Connect

  • Chat on Discord

  • Get in Touch

Products

  • Database
  • Cloud
  • Studio
  • Community Edition
  • Enterprise
  • Pricing

Use Cases

  • Cyber threat intelligence
  • Agentic systems
  • Knowledge graphs
  • Financial intelligence
  • Robotics

Resources

  • What is TypeDB?
  • Why TypeDB?
  • Lectures
  • Papers
  • Blog
  • Engineering Blog
  • Product Blog
  • Insights
  • Startup Program

Learn

  • Documentation
  • Examples
  • Guides
  • Core Concepts
  • Tools
  • Maintenance
  • Reference
  • TypeQL Reference
  • TypeDB Academy

Company

  • LinkedIn
  • GitHub
  • Privacy Policy
  • Terms of Service
© 2026 TypeDB Ltd
TypeDB™ and TypeQL™ are trademarks of TypeDB Ltd