EdgeQL over HTTP

EdgeDB can expose an HTTP endpoint for EdgeQL queries. Since HTTP is a stateless protocol, no DDL, transaction commands, or functions that require a session (such as sys::advisory_lock()) can be executed using this endpoint. Only one query per request can be executed.

Here’s an example of configuration that will set up EdgeQL over HTTP access to the database:

tutorial> 
......... 
......... 
......... 
......... 
......... 
......... 
......... 
CONFIGURE SYSTEM INSERT Port {
    protocol := "edgeql+http",
    database := "your_database_name",
    address := "127.0.0.1",
    port := 8889,
    user := "http",
    concurrency := 4,
};
CONFIGURE SYSTEM

This will expose EdgeQL API for the "your_database_name" database on port 8889 (or any other port that was specified).