graphql v0.19.3 Release Notes
Release Date: 2016-10-13 // over 7 years ago-
๐ฅ Breaking Changes
GraphQL::Query::Arguments.new
requiresargument_definitions:
of type{String => GraphQL::Argument }
#304
๐ Deprecations
Relay::Mutation#resolve
has a new signature. #301
Previously, it was called with two arguments:
resolve ->(inputs, ctx) { ... }
Now, it's called with three inputs:
resolve ->(obj, inputs, ctx) { ... }
obj
is the value ofroot_value:
given toSchema#execute
, as with other root-level fields.Two-argument resolvers are still supported, but they are deprecated and will be removed in a future version.
๐ New features
Relay::Mutation
accepts a user-definedreturn_type
#310Relay::Mutation#resolve
receives theroot_value
passed toSchema#execute
#301- Derived
Relay
objects have descriptions #303
๐ Bug fixes
- Introspection query is 7 levels deep instead of 3 #308
- Unknown variable types cause validation errors, not runtime errors #310
- ๐
Query::Arguments
doesn't wrap hashes from parsed scalars (fix for user-defined "JSONScalar") #304