graphql-ruby-client
Advanced tools
Changelog
1.11.5 (30 September 2020)
inline_variables: false
option and add #redact_argument_value?
and #redacted_argument_value
hooks #3167current_{path,field,arguments,object}
in query.context
#3139. The values at these keys change while the query is running.use(..., namespace: "...")
for running multiple schemas in the same application #3076deprecation_reason:
to arguments #3015.empty?
instead of .length.zero?
in lexer #3134RawValue
in ConnectionExtension #3122Changelog
1.11.4 (24 August 2020)
node_nullable
option for edge_type
#3083SystemStackError
s during validation #3107require 'digest/sha2'
for fingerprint #3103GraphQL::Query::Context#dig
#3090AppOpticsTracing
with latest changes in PlatformTracing
#3097GraphQL::Query::Context#fetch
#3081Changelog
1.11.3 (13 August 2020)
required
and default_value
argument behaviour change in 1.11.2 since it was not spec compliant #3066Mutation
instances after they're loaded #3073Changelog
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
#2782