apollo-federation 3.10.1 → 3.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/CHANGELOG.md +12 -0
- data/README.md +5 -2
- data/lib/apollo-federation/tracing/tracer.rb +10 -2
- data/lib/apollo-federation/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 799ff7dcaaf88157b7d98afb7928b2a269005d446b278090acd4f23085f86632
|
4
|
+
data.tar.gz: c42b4221e12c9ac01751a342ea077fba533d8859167518d09805239e83f6935f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 272e6b2fa822f86c18dac2d9b2b0caf3e8ab6c297d9b277851848df3afcff9aba6d97dafd1c40cf334cd9c4c80c7ac230d4eafb21da6a574e973f6727631728f
|
7
|
+
data.tar.gz: 26de2d9c4c18f072dd9ccc11359081673288971c87ade3d9808e0e6976c8f93436016a81fdb43338e63406d7d0eacc590ca97289c7efd9ec5872ebf182d2879c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## [3.10.3](https://github.com/Gusto/apollo-federation-ruby/compare/v3.10.2...v3.10.3) (2025-10-20)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* random update to README.md to trigger semantic-release ([#310](https://github.com/Gusto/apollo-federation-ruby/issues/310)) ([bfaa10e](https://github.com/Gusto/apollo-federation-ruby/commit/bfaa10e85a7e85781f2ae0373d656b0fc66d13eb))
|
7
|
+
|
8
|
+
|
9
|
+
### Reverts
|
10
|
+
|
11
|
+
* Revert "chore(release): 3.10.2 [skip ci]" (#309) ([a3937c6](https://github.com/Gusto/apollo-federation-ruby/commit/a3937c64f0ce9648edc10f74a80a4e825e01b4d4)), closes [#309](https://github.com/Gusto/apollo-federation-ruby/issues/309)
|
12
|
+
|
1
13
|
## [3.10.1](https://github.com/Gusto/apollo-federation-ruby/compare/v3.10.0...v3.10.1) (2025-04-02)
|
2
14
|
|
3
15
|
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# apollo-federation
|
2
2
|
|
3
|
-
[](https://github.com/Gusto/apollo-federation-ruby/actions/workflows/ci.yml)
|
4
4
|
|
5
5
|
This gem extends the [GraphQL Ruby](http://graphql-ruby.org/) gem to add support for creating an [Apollo Federation](https://www.apollographql.com/docs/apollo-server/federation/introduction/) schema.
|
6
6
|
|
7
|
+
|
7
8
|
## Installation
|
8
9
|
|
9
10
|
Add this line to your application's Gemfile:
|
@@ -144,7 +145,9 @@ This will start up the gateway and serve it at http://localhost:5000.
|
|
144
145
|
|
145
146
|
## Usage
|
146
147
|
|
147
|
-
The API is designed to mimic the API of [Apollo's federation library](https://www.apollographql.com/docs/apollo-server/federation/introduction/).
|
148
|
+
The API is designed to mimic the API of [Apollo's federation library](https://www.apollographql.com/docs/apollo-server/federation/introduction/).
|
149
|
+
|
150
|
+
It's best to read and understand the way federation works, in general, before attempting to use this library.
|
148
151
|
|
149
152
|
### Extending a type
|
150
153
|
|
@@ -26,8 +26,10 @@
|
|
26
26
|
#
|
27
27
|
# </execute_query_lazy>
|
28
28
|
#
|
29
|
-
# # `execute_query_lazy` *always* fires
|
30
|
-
# #
|
29
|
+
# # In graphql-ruby < 2.5.12, `execute_query_lazy` *always* fires.
|
30
|
+
# # In graphql-ruby >= 2.5.12, `execute_query_lazy` only fires when there are lazy values.
|
31
|
+
# # We record end times in both `execute_multiplex` (as a fallback) and `execute_query_lazy`
|
32
|
+
# # (to capture the full execution time including lazy resolution when present).
|
31
33
|
#
|
32
34
|
# </execute_multiplex>
|
33
35
|
|
@@ -96,6 +98,12 @@ module ApolloFederation
|
|
96
98
|
|
97
99
|
results = block.call
|
98
100
|
|
101
|
+
# Step 4.5:
|
102
|
+
# Record end times for all queries.
|
103
|
+
# This acts as a fallback for queries without lazy values.
|
104
|
+
# execute_query_lazy will overwrite these times if lazy values are present.
|
105
|
+
data.fetch(:multiplex).queries.each { |query| record_trace_end_time(query) }
|
106
|
+
|
99
107
|
# Step 5
|
100
108
|
# Attach the trace to the 'extensions' key of each result
|
101
109
|
results.map { |result| attach_trace_to_result(result) }
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apollo-federation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.10.
|
4
|
+
version: 3.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noa Elad
|
8
8
|
- Rylan Collins
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2025-
|
12
|
+
date: 2025-10-20 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: graphql
|
@@ -253,6 +254,7 @@ metadata:
|
|
253
254
|
changelog_uri: https://github.com/Gusto/apollo-federation-ruby/releases
|
254
255
|
source_code_uri: https://github.com/Gusto/apollo-federation-ruby
|
255
256
|
bug_tracker_uri: https://github.com/Gusto/apollo-federation-ruby/issues
|
257
|
+
post_install_message:
|
256
258
|
rdoc_options: []
|
257
259
|
require_paths:
|
258
260
|
- lib
|
@@ -267,7 +269,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
269
|
- !ruby/object:Gem::Version
|
268
270
|
version: '0'
|
269
271
|
requirements: []
|
270
|
-
rubygems_version: 3.
|
272
|
+
rubygems_version: 3.5.22
|
273
|
+
signing_key:
|
271
274
|
specification_version: 4
|
272
275
|
summary: A Ruby implementation of Apollo Federation
|
273
276
|
test_files: []
|