apollo-federation 3.6.8 → 3.6.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca65263393e858c48499b29d8e2121b25f515708c1f831f54b03219d0f7f13b6
|
4
|
+
data.tar.gz: 01cf7071792dfa1b1a4aa036c0e7ebc061f4194d52036ffef6e9a3b031336fdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae86a03f465d0a063385b6e6cc60f6c50363b67261623ca3531656e73b0a6a662a811f207accbe3f504cd88fd9442a2710abde4ca9438a853fc65ae0bc86763
|
7
|
+
data.tar.gz: 1de8a1c7007064e4ec3d327cc38c7e08a80ab3ffd6ca1f6956d4e360dbb4bc22425cbd751f0d04c4b94a4157bc3b30422871c86e86b8e77f5078142c84b10231
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [3.6.9](https://github.com/Gusto/apollo-federation-ruby/compare/v3.6.8...v3.6.9) (2023-05-23)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* visibility checks should handle duplicate types and fields ([#245](https://github.com/Gusto/apollo-federation-ruby/issues/245)) ([6401feb](https://github.com/Gusto/apollo-federation-ruby/commit/6401febe65743eb1fae970b3cf865b7007fb27cf))
|
7
|
+
|
1
8
|
## [3.6.8](https://github.com/Gusto/apollo-federation-ruby/compare/v3.6.7...v3.6.8) (2023-05-22)
|
2
9
|
|
3
10
|
|
@@ -69,7 +69,7 @@ module ApolloFederation
|
|
69
69
|
def build_type_definition_nodes(types)
|
70
70
|
non_federation_types = types.select do |type|
|
71
71
|
if query_type?(type)
|
72
|
-
!
|
72
|
+
!warden.fields(type).all? { |field| FEDERATION_QUERY_FIELDS.include?(field.graphql_name) }
|
73
73
|
else
|
74
74
|
!FEDERATION_TYPES.include?(type.graphql_name)
|
75
75
|
end
|
@@ -81,9 +81,9 @@ module ApolloFederation
|
|
81
81
|
|
82
82
|
# Walk through all of the types and determine which ones are entities (any type with a
|
83
83
|
# "key" directive)
|
84
|
-
types_schema.
|
84
|
+
types_schema.send(:non_introspection_types).values.flatten.select do |type|
|
85
85
|
# TODO: Interfaces can have a key...
|
86
|
-
|
86
|
+
type.include?(ApolloFederation::Object) &&
|
87
87
|
type.federation_directives&.any? { |directive| directive[:name] == 'key' }
|
88
88
|
end
|
89
89
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apollo-federation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noa Elad
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-05-
|
12
|
+
date: 2023-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|