graphql-ruby-client
Advanced tools
Changelog
1.11.2 (1 August 2020)
default_value: ...
and required: true
in argument definitions. However, this definition doesn't make sense -- a default value is never used for a required: true
argument. This configuration now raises an error. Remove the default_value:
to get rid of the error. #3011DELETE_NODE
check #3053.trigger
from unsubscribed ActionCable channel #3051default_value: ...
used with required: true
during definition #3011edge_class:
with new connections #3036Changelog
1.11.1 (17 June 2020)
StatsdTracing
#2996InvalidNullError
when a mutation field returns an invalid nil
#2997Changelog
1.11.0 (13 June 2020)
Global tracers are removed (deprecated since 1.7.4) #2936
Fields defined in camel case (field :doStuff
) will not line up to methods that are underscore case (def do_stuff
). Instead, the given symbol is used verbatim. #2938 To work around this:
def doStuff
)field :do_stuff
, let graphql-ruby camelize it for you)resolver_method: :do_stuff
to explicitly map the field to a method on the object type definitionYou can probably find instances of this in your application with a regexp like /field :[a-z]+[A-Z]/
, and review them.
extend SubscriptionRoot
is no longer necessary #2770broadcast: true
option to subscriptions #2959Edge#parent
to new connection classes #2961Changelog
1.10.7 (16 April 2020)
Schema.from_introspection(...)
builds class-based schemas #2876Date
and DateTime
types also accept well-formatted strings #2848Schema.from_introspection(...)
builds class-based schemas #2876Schema#to_definition
now dumps all directives that were part of the original IDL, if the schema was parsed with .from_definition
#2879List
and NonNull
types (for introspection) #2875Changelog
1.10.6 (6 April 2020)
implements(...)
and interface type visibility #2791Query#fingerprint
for logging #2859--playground
option to install generator #2839loads:
#2834Language::Nodes
equality: move eql?
to ==
#2861environment
task #2862nil
override for max_page_size
#2843pageInfo
methods when they're called before nodes
#2845loads:
with require: false
#2833BigInt
given nil
#2827Changelog
1.10.5 (12 March 2020)
#field_complexity
hook to AST::QueryComplexity
analyzer #2807nonce: true
when encoding cursors #2821Analysis::AST
to schema instances #2820Query#arguments_for
for lookahead arguments #2811Changelog
1.10.4 (3 March 2020)
argument :my_arg, ...
), that symbol is used verbatim to build Ruby keyword arguments. Previously it was converted to underscore-case, but this autotransform was confusing and wrong in some cases. You may have to change the symbol in your argument(...)
configuration if you were depending on that underscorization. #2792.from_definition
previously had half-way connection support. It's now completely removed, so you have to add connection wrappers manually. See #2782 for migration notes.Appoptics
tracing #2789Query#sanitized_query_string
#2785Query#arguments_for
with interpreter #2781Schema.from_definition
#2782Changelog
1.10.3 (17 Feb 2020)
loads:
with plain field arguments #2720raw_value(...)
to halt execution with a certain value #2699.read_subscription
can return nil
to bypass executing a subscription #2741prepare(...)
is properly applied to default values in subscription fields #2748module_parent_name
in Rails #2713Changelog
1.10.1 (28 Jan 2020)
orphan_types
when building a schema #2705{}
in .define
-based schemas #2703@skip(if: true)
or @include(if: false)
in lookahead #2700