apollo-federation 3.4.0 → 3.4.1
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: 7cffb53f08806faf67b0cb6859070ba9713e2a4041853ca085ed60e53544881a
|
4
|
+
data.tar.gz: 49d268d70116760b61aa7c7edb9ed6cccf62fa15ae690a85e938714d39bd5ded
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f049907664be9ecb42f482af571799171e8d6156439fc816e3384bfbdae42709a289d1b25c7b6c42ad6a07afc7d3754b55b98eb2f03c9c72932e0f63a72f12c6
|
7
|
+
data.tar.gz: 98e8fdb620d9f5007f2c690203372a3fb89dc5325aecdfd91f8287a160cf12d3793f24cf5c3f38b7fb80757fe2995e2d3135d7510ac9ab354faf4ffea24b2990
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [3.4.1](https://github.com/Gusto/apollo-federation-ruby/compare/v3.4.0...v3.4.1) (2023-02-21)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* import [@inaccessible](https://github.com/inaccessible) directive in Fed v2.3 ([#220](https://github.com/Gusto/apollo-federation-ruby/issues/220)) ([5d4d86e](https://github.com/Gusto/apollo-federation-ruby/commit/5d4d86e8155efe83470c58012454c79c910219ff))
|
7
|
+
|
1
8
|
# [3.4.0](https://github.com/Gusto/apollo-federation-ruby/compare/v3.3.1...v3.4.0) (2023-02-21)
|
2
9
|
|
3
10
|
|
@@ -14,6 +14,7 @@ module ApolloFederation
|
|
14
14
|
'_entities',
|
15
15
|
'_service',
|
16
16
|
].freeze
|
17
|
+
INACCESSIBLE_DIRECTIVE = 'inaccessible'
|
17
18
|
|
18
19
|
def build_object_type_node(object_type)
|
19
20
|
object_node = super
|
@@ -70,7 +71,7 @@ module ApolloFederation
|
|
70
71
|
end
|
71
72
|
|
72
73
|
def directive_name(directive)
|
73
|
-
if schema.federation_2?
|
74
|
+
if schema.federation_2? && directive[:name] != INACCESSIBLE_DIRECTIVE
|
74
75
|
"#{schema.link_namespace}__#{directive[:name]}"
|
75
76
|
else
|
76
77
|
directive[:name]
|
@@ -61,7 +61,7 @@ module ApolloFederation
|
|
61
61
|
|
62
62
|
<<~SCHEMA
|
63
63
|
extend schema
|
64
|
-
@link(url: "https://specs.apollo.dev/federation/v2.3"#{federation_namespace})
|
64
|
+
@link(url: "https://specs.apollo.dev/federation/v2.3"#{federation_namespace}, import: ["@inaccessible"])
|
65
65
|
|
66
66
|
SCHEMA
|
67
67
|
end
|