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:
using extension edgeql_http;
Then create a new migration and apply it using edgedb migration create and edgedb migrate, respectively.
http://127.0.0.1:<instance-port>/db/<database-name>/edgeql
will expose EdgeQL API. Check the credentials file for your instance at <edgedb_config_dir>/credentials
to find out which port the instance is using. Run edgedb info
to see the path to <edgedb_config_dir>
on your machine.