dgraph
Documentation
  • Dgraph
  • Home
  • Learn
  • Tour
  • Pricing
  • Community
  • GitHub
Dgraph version:
  • Home
  • Dgraph Overview
  • GraphQL API
    • Quick Start
    • Schema
      • Types
      • Relationships
      • Reserved Names
      • Directives
        • @auth
        • @deprecated
        • @id
        • Search and Filtering
        • @generate
      • Schema Migration
      • Documentation and Comments
      • Dgraph Schema Fragment
    • Security
      • Anonymous Access
      • Handle JWT Token
      • RBAC rules
      • ABAC rules
      • Mutations
      • Restrict origins
      • Authorization tips
    • Queries
      • Overview
      • Search and Filtering
      • Aggregate Queries
      • Persistent Queries
      • And, Or and Not
      • Cached Results
      • Order and Pagination
      • @cascade Directive
      • @skip and @include Directives
    • Mutations
      • Overview
      • Add
      • Upsert
      • Update
      • Delete
      • Deep
    • Subscriptions
    • Custom Resolvers
      • Overview
      • The @custom Directive
      • Custom Queries
      • Custom Mutations
      • Custom Fields
      • Custom DQL
    • Lambda Resolvers
      • Overview
      • field
      • Lambda Queries
      • Lambda Mutations
      • Lambda Webhooks
      • Lambda Server
    • Client API
      • Requests and Responses
      • GraphQL Variables
      • GraphQL Fragments
      • Multiple GraphQL Operations in a Request
      • GraphQL Errors
    • Administrative API
    • Apollo Federation
    • GraphQL on Existing Dgraph
    • To-Do List App Tutorial
      • Overview
      • Schema Design
      • Creating a Basic UI
      • Authorization Rules
      • Using Auth0
      • Using Firebase Authentication
      • Deploying on Dgraph Cloud
  • Dgraph Query Language
    • Quick Start
    • DQL Syntax
      • DQL query
      • DQL mutation
      • RDF
      • JSON Mutation Format
    • Predicate types
    • Predicate indexing
    • Query Language
      • Running examples
      • Functions
      • Connecting Filters
      • Aliases
      • Pagination
      • Count
      • Sorting
      • Multiple Query Blocks
      • Query Variables
      • Value Variables
      • Aggregation
      • Math on Value Variables
      • GroupBy
      • Expand Predicates
      • Cascade Directive
      • @normalize Directive
      • @ignorereflex Directive
      • Debug
      • Facets and Edge attributes
      • Shortest Path Queries
      • Recurse Query
      • Fragments
      • GraphQL Variables
      • Indexing with Custom Tokenizers
      • Language Support
    • DQL: Tips and Tricks
    • Node types
    • Mutations
      • uid function in upsert
      • val function in upsert
      • External IDs and Upsert Block
    • Tutorials
      • Introduction
      • Basic Operations
      • Types and Operations
      • Multi-language strings
      • String Indices
      • Advanced Text Search
      • Fuzzy Search
      • Geolocation
  • Clients
    • Overview
    • Go
    • C#
    • Java
    • JavaScript
      • gRPC Client
      • HTTP Client
    • Python
    • Unofficial Dgraph Clients
    • Raw HTTP
  • Ratel UI
    • Ratel Overview
    • Connection
    • Console
    • Schema
    • Cluster
    • Backups
  • Data migration
    • Data migration
    • CSV data
    • MySQL data
  • Dgraph Cloud
    • Dgraph Cloud Overview
    • Provision a backend
    • Dgraph Cloud Quick Start
    • Advanced Queries with DQL
    • Multi-tenancy in Dgraph Cloud
    • Migrating from Self-Managed Dgraph
    • Administering Your Backend
      • Overview
      • API keys
      • Fetching and Updating Your Schema
      • Importing and Exporting data from Dgraph Cloud
      • Dropping Data from your Backend
      • Switch Schema Modes
      • Cloning Backend
      • Monitoring with Prometheus
    • Dgraph Cloud API
      • Authentication
      • Schema
      • Backend
      • Backup
      • Lambda
  • Self-managed cluster
    • Installation
      • Download
      • Production checklist
      • Learning Environment
      • Production Environment
        • Cluster Types
        • Single Server Cluster Setup
        • Highly Available Cluster Setup
        • Monitoring the Cluster
    • Config
    • More about Dgraph Zero
    • More about Dgraph Alpha
    • Cluster Setup
    • Cluster Checklist
    • Administration
      • Dgraph Administration
      • Logging
      • Monitoring
      • Metrics
      • Tracing
      • Data compression on Disk
    • Security
      • Ports Usage
      • TLS Configuration
    • Data Decryption
    • Dgraph CLI Reference
    • Troubleshooting
  • Enterprise Features
    • Access Control Lists
    • Audit Logging
    • Backup List Tool
    • Binary Backups
    • Change Data Capture
    • Encryption at Rest
    • Learner Nodes
    • License
    • Multi-Tenancy
  • How To Guides
    • Command line
      • Command-line completion
      • Create a completion script
    • Export data
      • Export data
      • Export data from Dgraph Cloud
      • Export data from Dgraph
    • Import data
      • Import data
      • Live import
      • Initial import (Bulk Loader)
    • Using the Debug Tool
    • Shell Completion
    • Using the Dgraph Sentry Integration
    • Retrieving Debug Information
    • Using the Increment Tool
    • Giving Nodes a Type
    • A Simple Login System
    • Load Balancing Queries with NGINX
    • Upserts
    • Run Jepsen Tests
    • Concurrent mutations and conflicts
    • Query Dgraph types
    • Update Dgraph types
    • Drop all data
  • Design Concepts
    • Transactions: FAQ
    • Consistency Model
    • Concepts
    • How Dgraph Minimizes Network Calls
    • RAFT
  • Releases
  • Dgraph Glossary
  • Home
  • Community
  • GitHub
Ask a Question

DQL syntax

Dgraph Query Language (DQL) is Dgraph’s proprietary language to add, modify, delete and fetch data.

Fetching data is done through DQL Queries. Adding, modifying or deleting data is done through DQL Mutations.

  • JSON Mutation Format
  • DQL mutation
  • DQL query
  • RDF
Close