graphql v0.19.3 Release Notes

Release Date: 2016-10-13 // over 7 years ago
  • ๐Ÿ’ฅ Breaking Changes

    • GraphQL::Query::Arguments.new requires argument_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 of root_value: given to Schema#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-defined return_type #310
    • Relay::Mutation#resolve receives the root_value passed to Schema#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