github graphile/crystal v2.1.0
Watching Your Database in Development

latest releases: pgl5b21, v4.14.0, v4.13.0...
8 years ago

This release adds watch functionality to PostGraphQL πŸŽ‰

When developing PostGraphQL, it’s nice to have a fast feedback cycle. Being able to open PostGraphQL in one window and a Postgres query input in the other while PostGraphQL automatically updates is a great way to develop rapidly.

To use just pass in --watch and/or watchPg: true (depending on if you are using the CLI or the middleware). PostGraphQL will add an event trigger to your database (can only be done if you start PostGraphQL as a superuser), and whenever it gets a notification from that trigger PostGraphQL will automatically rebuild the schema. See a demonstration below:

PostGraphQL Watch Demonstration

Don't miss a new crystal release

NewReleases is sending notifications on new releases.