github graphile/crystal v1.7.0
Unique column constraint fields and hidden mutations for non-updatable views

latest releases: v4.14.0, v4.13.0, v4.12.12...
7 years ago

This release adds two new helpful features. The first being unique column constraint fields, and the second being the hiding of mutations for non-updatable views.

Unique column constraint fields adds a feature a lot of people have been wanting. Selection by the raw rowId field. In the forum example, for instance, you can now use this new fields:

{
  userByRowId(rowId: 1) {
    id
    rowId
    givenName
    familyName
  }
}

Instead of needing to use the obfuscated global ID. But this method also extends to tables with a unique compound constraint. So for example if table foo had columns bar and buz which had a unique constraint, you could query a single row of such a table like such:

{
  fooByBarAndBuz(bar: 1, buz: 2) {
    ...
  }
}

In addition, this release is able to detect which views are updatable and which are not and exclude/include insert, update, and delete mutations accordingly. This means views which may not be mutated will not be falsely represented in your schema now. This should have been the functionality all along, therefore it is considered a bug fix and not a breaking change.

Commits

Don't miss a new crystal release

NewReleases is sending notifications on new releases.