graphql 1.11.7 → 1.11.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/schema.rb +9 -8
- data/lib/graphql/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b72615f5488c1aa58c921128dd067d9f098b4617c954ac267e37efa72a9107c
|
4
|
+
data.tar.gz: 4690738202ecd5d048802c80f1fc87095e0c1de4a02adcba26e88415f401908c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 744ca52fc03919a071013a27139112c2c18e487f333ee335ea374feaef06bb904079d4c54e0ddf088d2b5dfa345172efb3063faefa792c1c8ade38616752fa1a
|
7
|
+
data.tar.gz: 90fffd6928d128f2516e4f49c9d729a26a57101683e19d0a90818c45f431bae221e4b8b1bf8d7bc374e20c8e98e3f0a0963877e818ae946f999d40942182cddd
|
data/lib/graphql/schema.rb
CHANGED
@@ -1119,14 +1119,15 @@ module GraphQL
|
|
1119
1119
|
type.possible_types(context: context)
|
1120
1120
|
else
|
1121
1121
|
stored_possible_types = own_possible_types[type.graphql_name]
|
1122
|
-
visible_possible_types = stored_possible_types
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1122
|
+
visible_possible_types = if stored_possible_types && type.kind.interface?
|
1123
|
+
stored_possible_types.select do |possible_type|
|
1124
|
+
# Use `.graphql_name` comparison to match legacy vs class-based types.
|
1125
|
+
# When we don't need to support legacy `.define` types, use `.include?(type)` instead.
|
1126
|
+
possible_type.interfaces(context).any? { |interface| interface.graphql_name == type.graphql_name }
|
1127
|
+
end
|
1128
|
+
else
|
1129
|
+
stored_possible_types
|
1130
|
+
end
|
1130
1131
|
visible_possible_types ||
|
1131
1132
|
introspection_system.possible_types[type.graphql_name] ||
|
1132
1133
|
(
|
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.11.
|
4
|
+
version: 1.11.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|
@@ -741,7 +741,7 @@ metadata:
|
|
741
741
|
source_code_uri: https://github.com/rmosolgo/graphql-ruby
|
742
742
|
bug_tracker_uri: https://github.com/rmosolgo/graphql-ruby/issues
|
743
743
|
mailing_list_uri: https://tinyletter.com/graphql-ruby
|
744
|
-
post_install_message:
|
744
|
+
post_install_message:
|
745
745
|
rdoc_options: []
|
746
746
|
require_paths:
|
747
747
|
- lib
|
@@ -756,8 +756,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
756
756
|
- !ruby/object:Gem::Version
|
757
757
|
version: '0'
|
758
758
|
requirements: []
|
759
|
-
rubygems_version: 3.
|
760
|
-
signing_key:
|
759
|
+
rubygems_version: 3.1.4
|
760
|
+
signing_key:
|
761
761
|
specification_version: 4
|
762
762
|
summary: A GraphQL language and runtime for Ruby
|
763
763
|
test_files: []
|