graphql 1.9.20 → 1.9.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/subscriptions/subscription_root.rb +10 -2
- data/lib/graphql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc71a5ff7b742541447b08e62f4b0561ae2b7ae3767d9b18000e0cfdcd411a1
|
4
|
+
data.tar.gz: decb826d15ed416571e152b108698a326803cadf45cc78d9a823344bc156b3f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0ce5989f626b9907fd77c0c54dd42f695e4484236da24f689a160fc521614d7cdc9600f0c9044c2e3b547afc1d862efa23da45b2bc13b0173f3c3af2683059
|
7
|
+
data.tar.gz: e45810e9c2e0f885e42bfe90c4daf9383e0860543ac9a6ecf6215f994b7af43c0d8d46b74da78a43f9159e3c9fe3882c5ac97257f67a5272407eb6f9b80bbe87
|
@@ -40,7 +40,7 @@ module GraphQL
|
|
40
40
|
# for the backend to register:
|
41
41
|
events << Subscriptions::Event.new(
|
42
42
|
name: field.name,
|
43
|
-
arguments: arguments,
|
43
|
+
arguments: arguments_without_field_extras(arguments: arguments),
|
44
44
|
context: context,
|
45
45
|
field: field,
|
46
46
|
)
|
@@ -48,7 +48,7 @@ module GraphQL
|
|
48
48
|
value
|
49
49
|
elsif context.query.subscription_topic == Subscriptions::Event.serialize(
|
50
50
|
field.name,
|
51
|
-
arguments,
|
51
|
+
arguments_without_field_extras(arguments: arguments),
|
52
52
|
field,
|
53
53
|
scope: (field.subscription_scope ? context[field.subscription_scope] : nil),
|
54
54
|
)
|
@@ -60,6 +60,14 @@ module GraphQL
|
|
60
60
|
context.skip
|
61
61
|
end
|
62
62
|
end
|
63
|
+
|
64
|
+
private
|
65
|
+
|
66
|
+
def arguments_without_field_extras(arguments:)
|
67
|
+
arguments.dup.tap do |event_args|
|
68
|
+
field.extras.each { |k| event_args.delete(k) }
|
69
|
+
end
|
70
|
+
end
|
63
71
|
end
|
64
72
|
end
|
65
73
|
end
|
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.9.
|
4
|
+
version: 1.9.21
|
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-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|