Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose the loaded supergraph sdl in the schema event #6368

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

EmrysMyrddin
Copy link
Collaborator

Description

The schema event is emitted each time we load a new schema with the already stitched schema.

It can be useful to also have access to the raw supergraph SDL.

This is for example usefull for the integration with Apollo Server and its usage reporting feature.

Type of change

  • New feature (non-breaking change which adds functionality)

Copy link

changeset-bot bot commented Jul 23, 2024

🦋 Changeset detected

Latest commit: 4b154b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@graphql-tools/federation Minor
federation-benchmark Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

✅ Benchmark Results

     ✓ no_errors
     ✓ expected_result

     checks.........................: 100.00% ✓ 318       ✗ 0  
     data_received..................: 37 MB   3.7 MB/s
     data_sent......................: 136 kB  14 kB/s
     http_req_blocked...............: avg=5.47µs   min=2.11µs   med=2.69µs   max=397.33µs p(90)=4.04µs   p(95)=4.26µs  
     http_req_connecting............: avg=2.12µs   min=0s       med=0s       max=338.57µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=59ms     min=48.41ms  med=55.12ms  max=163.4ms  p(90)=66.04ms  p(95)=90.85ms 
       { expected_response:true }...: avg=59ms     min=48.41ms  med=55.12ms  max=163.4ms  p(90)=66.04ms  p(95)=90.85ms 
     http_req_failed................: 0.00%   ✓ 0         ✗ 159
     http_req_receiving.............: avg=134.24µs min=102.82µs med=129.85µs max=314.76µs p(90)=152.44µs p(95)=163.66µs
     http_req_sending...............: avg=25.44µs  min=19.69µs  med=24.32µs  max=64.19µs  p(90)=30.4µs   p(95)=35.09µs 
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=58.84ms  min=48.26ms  med=54.97ms  max=163.02ms p(90)=65.88ms  p(95)=90.65ms 
     http_reqs......................: 159     15.813645/s
     iteration_duration.............: avg=63.21ms  min=52.6ms   med=59.55ms  max=167.65ms p(90)=69.83ms  p(95)=95.04ms 
     iterations.....................: 159     15.813645/s
     vus............................: 1       min=1       max=1
     vus_max........................: 1       min=1       max=1

Copy link
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-tools/federation 2.2.0-alpha-20240723121038-4b154b6ff04f350d38b22ffcf77d0520877623cd npm ↗︎ unpkg ↗︎

Copy link
Contributor

💻 Website Preview

The latest changes are available as preview in: https://5c42de57.graphql-tools.pages.dev

@EmrysMyrddin EmrysMyrddin merged commit 334d301 into master Jul 23, 2024
30 checks passed
@EmrysMyrddin EmrysMyrddin deleted the federation/managed/expose-loaded-sdl branch July 23, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant