EdgeQL over HTTP

EdgeDB can expose an HTTP endpoint for EdgeQL queries. Since HTTP is a stateless protocol, no DDL, transaction commands, can be executed using this endpoint. Only one query per request can be executed.

In order to set up HTTP access to the database add the following to the schema:

Copy
using extension edgeql_http;

Then create a new migration and apply it using edgedb create-migration and edgedb migrate, respectively.

http://127.0.0.1:<instance-port>/db/<database-name>/edgeql will expose GraphQL API. Check the credentials file for your instance at $HOME/.edgedb/credentials to find out which port the instance is using.

Light
Dark
System