This release adds better PostGraphQL support for Relay mutations. In the past, PostGraphQL didn’t always include all of the fields Relay would want in its mutations payloads, this release adds fields to the mutation payload that benefit Relay and non-Relay users alike.
The new payload types from the person table in the forum example look like so:
type InsertPersonPayload {
person: Person
personEdge(orderBy: PersonOrdering): PersonEdge
clientMutationId: String
viewer: Viewer!
}
type UpdatePersonPayload {
person: Person
clientMutationId: String
viewer: Viewer!
}
type DeletePersonPayload {
person: Person
deletedPersonId: ID
clientMutationId: String
viewer: Viewer!
}
express-graphql
Update
Another exciting feature of this release is the upgrade of a bunch of dependencies, most notably express-graphql
! This brings a new version of GraphiQL which fixes a couple of bugs and now also hides GraphiQL from search engines.
With this update you can now also use PostGraphQL as Connect middleware and not just Express middleware.