GraphQL and Deno Playground
- Install Deno
brew install deno
- Install docker and docker-compose
docker-compose up -d
and wait about 2 minutes for the DB to initialize
docker-compose up -d
again to run the flyway migrations to setup the DB tables
make seed
to seed the database information. This takes about 30 minutes on an M1 Mac. Roughly 795MB of data.
- Visit http://localhost:8080/console to open the hasura development console.
- Use
myadminsecretkey
to login to the console
- Add the database with any display name. URL:
postgresql://denoman:denolover@db:5432/playground
- Watch all relationships
query ListUsersWithAlerts($limit: Int = 10) {
users(limit: $limit, order_by: {created_at: asc}) {
email
created_at
first_name
id
last_name
updated_at
alerts {
description
created_at
read
updated_at
organization {
name
id
}
}
}
}