Cheatsheets: EdgeDB by example

Just getting started? Keep an eye on this collection of cheatsheets with handy examples for what you’ll need to get started with EdgeDB. After familiarizing yourself with them, feel free to dive into more EdgeDB via our longer interactive tutorial and much longer Easy EdgeDB textbook.

CLI/Admin:

  • CLI Usage – Getting your database started.

  • REPL – Shortcuts for frequently used commands in the EdgeDB REPL.

  • Administration – Database and role creation, passwords, port configuration, etc.

EdgeQL:

  • SELECT – Retrieve or compute a set of values.

  • INSERT – Create new database objects.

  • UPDATE – Update database objects.

  • DELETE – Remove objects from the database.

  • GraphQL – GraphQL queries supported natively out of the box.

  • Special Syntax – Info on types of strings, number literals, etc.

Schema:

  • Types – Make your own object and abstract types on top of existing system types.

  • Functions – Write and overload your own strongly typed functions.

  • Aliases – Use aliases to create new types and modify existing ones on the fly.

  • Annotations – Add human readable descriptions to items in your schema.

  • Migrations – Describe your final schema and let EdgeDB put it together for you.