graphql 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generators/graphql/core.rb +10 -2
- data/lib/generators/graphql/templates/schema.erb +1 -0
- data/lib/graphql/define/defined_object_proxy.rb +1 -1
- data/lib/graphql/define/instance_definable.rb +1 -1
- data/lib/graphql/execution/interpreter.rb +3 -0
- data/lib/graphql/execution/interpreter/handles_raw_value.rb +25 -0
- data/lib/graphql/execution/interpreter/runtime.rb +37 -121
- data/lib/graphql/field.rb +1 -1
- data/lib/graphql/language/nodes.rb +41 -83
- data/lib/graphql/language/parser.rb +96 -96
- data/lib/graphql/language/parser.y +96 -96
- data/lib/graphql/pagination/connections.rb +21 -5
- data/lib/graphql/query/null_context.rb +5 -1
- data/lib/graphql/query/variables.rb +9 -3
- data/lib/graphql/schema.rb +18 -2
- data/lib/graphql/schema/build_from_definition.rb +15 -1
- data/lib/graphql/schema/enum.rb +4 -1
- data/lib/graphql/schema/field.rb +11 -0
- data/lib/graphql/schema/field/connection_extension.rb +2 -1
- data/lib/graphql/schema/input_object.rb +21 -38
- data/lib/graphql/schema/member/base_dsl_methods.rb +11 -4
- data/lib/graphql/schema/member/has_arguments.rb +53 -2
- data/lib/graphql/schema/member/has_ast_node.rb +4 -1
- data/lib/graphql/schema/member/has_fields.rb +1 -1
- data/lib/graphql/schema/resolver.rb +2 -2
- data/lib/graphql/schema/resolver/has_payload_type.rb +3 -1
- data/lib/graphql/schema/warden.rb +10 -0
- data/lib/graphql/static_validation/rules/variable_default_values_are_correctly_typed.rb +0 -1
- data/lib/graphql/subscriptions.rb +14 -9
- data/lib/graphql/subscriptions/subscription_root.rb +2 -1
- data/lib/graphql/version.rb +1 -1
- metadata +4 -3
@@ -38,12 +38,13 @@ module GraphQL
|
|
38
38
|
elsif (events = context.namespace(:subscriptions)[:events])
|
39
39
|
# This is the first execution, so gather an Event
|
40
40
|
# for the backend to register:
|
41
|
-
|
41
|
+
event = Subscriptions::Event.new(
|
42
42
|
name: field.name,
|
43
43
|
arguments: arguments,
|
44
44
|
context: context,
|
45
45
|
field: field,
|
46
46
|
)
|
47
|
+
events << event
|
47
48
|
value
|
48
49
|
elsif context.query.subscription_topic == Subscriptions::Event.serialize(
|
49
50
|
field.name,
|
data/lib/graphql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|
@@ -423,6 +423,7 @@ files:
|
|
423
423
|
- lib/graphql/execution/instrumentation.rb
|
424
424
|
- lib/graphql/execution/interpreter.rb
|
425
425
|
- lib/graphql/execution/interpreter/execution_errors.rb
|
426
|
+
- lib/graphql/execution/interpreter/handles_raw_value.rb
|
426
427
|
- lib/graphql/execution/interpreter/hash_response.rb
|
427
428
|
- lib/graphql/execution/interpreter/resolve.rb
|
428
429
|
- lib/graphql/execution/interpreter/runtime.rb
|
@@ -742,7 +743,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
742
743
|
- !ruby/object:Gem::Version
|
743
744
|
version: '0'
|
744
745
|
requirements: []
|
745
|
-
rubygems_version: 3.
|
746
|
+
rubygems_version: 3.1.2
|
746
747
|
signing_key:
|
747
748
|
specification_version: 4
|
748
749
|
summary: A GraphQL language and runtime for Ruby
|