graphql-ruby-client
Advanced tools
Changelog
1.13.3 (6 January 2022)
GraphQL::Relay::NodeField
and GraphQL::Relay::NodesField
are deprecated; use GraphQL::Types::Relay::HasNodesField
or GraphQL::Types::Relay::HasNodeField
instead. (The underlying field instances require a reference to their owner type, but NodeField
and NodesField
can't do that, since they're shared instances) #3791required: :nullable
to make an argument required to be present, even if it's null
#3784.authorized?
on them at runtime #3786extras(...)
for extension-related extras with automatic cleanup #3787query { ... }
but has no query root #3815Schema.get_field
can't make sense of the arguments #3815prepare:
hooks #3794Changelog
1.13.2 (15 December 2021)
loads:
#3782Interpreter::Arguments
instance as context[:current_arguments]
#3783Changelog
1.13.1 (13 December 2021)
.to_graphql
and .graphql_definition
are deprecated and will be removed in GraphQL-Ruby 2.0. All features using those legacy definitions are already removed and all behaviors should have been ported to class-based definitions. So, you should be able to remove those calls entirely. Please open an issue if you have trouble with it! #3750 #3765context.response_extensions[...] = ...
adds key-value pairs to the "extensions" => {...}
hash in the final response #3770node_type
and edge_type
accept field_options:
to pass custom options to generated fields #3756default_argument ...
configuration for adding arguments if the field doesn't already have them #3751rails destroy graphql:install
#3739.authorized?
on arguments from input_object_class
, input_type
, too #3738validates: { length: ... }, allow_blank: false
#3747edges
and nodes
fields by page size #3758Changelog
1.13.0 (24 November 2021)
Since this version, GraphQL-Ruby is tested on Ruby 2.4+ and Rails 4+ only.
NO_UPDATE
#3713scope ...
configuration, then a scope:
option is required in .trigger(...)
. Use scope ..., optional: true
to get the old behavior. #3692first
/last
/max_page_size
#3609false
for .visible?(context)
, their default values won't be applied.visible?(context)
for each query (and raise an error if multiple objects with the same name are visible). #3651 #3716 #3725nonblocking: true
will make GraphQL::Dataloader use Fiber.scheduler
to run fields and load data with sources, supporting non-blocking IO. #3482null: true
and required: true
are now default. GraphQL-Ruby includes some RuboCop cops, GraphQL/DefaultNullTrue
and GraphQL/DefaultRequiredTrue
, which identify and remove those needless configurations. #3612implement ...
other interfaces #3613value(...)
and Input Object argument(...)
methods return the defined object #3727nil
where there were errors in the list #3656