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

fix type and documentation for dynamic schema function #3004

Merged
merged 6 commits into from
Sep 27, 2023

Conversation

EmrysMyrddin
Copy link
Collaborator

fix #2999

@changeset-bot
Copy link

changeset-bot bot commented Sep 19, 2023

🦋 Changeset detected

Latest commit: 9d3aed5

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

This PR includes changesets to release 10 packages
Name Type
graphql-yoga Patch
apollo-federation-gateway-with-yoga Patch
apollo-subgraph-with-yoga Patch
graphql-lambda Patch
cloudflare-advanced Patch
cloudflare Patch
functions Patch
hackernews Patch
nextjs-app Patch
hello-world-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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

🚀 Snapshot Release (rc)

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

Package Version Info
graphql-yoga-cloud-run-guide 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/apollo-link 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/urql-exchange 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
graphql-yoga 4.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/nestjs 2.1.1-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/nestjs-federation 2.2.1-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-apollo-inline-trace 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-apq 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-csrf-prevention 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-defer-stream 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-disable-introspection 1.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-graphql-sse 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-jwt 1.0.2-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-persisted-operations 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-prometheus 2.0.6-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-response-cache 2.1.2-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-sofa 2.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎
@graphql-yoga/render-graphiql 4.0.5-rc-20230920120656-9d3aed5b npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

Apollo Federation Subgraph Compatibility Results

Federation 1 SupportFederation 2 Support
_service🟢
@key (single)🟢
@key (multi)🟢
@key (composite)🟢
repeatable @key🟢
@requires🟢
@provides🟢
federated tracing🟢
@link🟢
@shareable🟢
@tag🟢
@override🟢
@inaccessible🟢
@composeDirective🟢
@interfaceObject🟢

Learn more:

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

✅ Benchmark Results

     ✓ no_errors{mode:graphql}
     ✓ expected_result{mode:graphql}
     ✓ no_errors{mode:graphql-jit}
     ✓ expected_result{mode:graphql-jit}
     ✓ no_errors{mode:graphql-response-cache}
     ✓ expected_result{mode:graphql-response-cache}
     ✓ no_errors{mode:graphql-no-parse-validate-cache}
     ✓ expected_result{mode:graphql-no-parse-validate-cache}

     checks.......................................: 100.00% ✓ 229650     ✗ 0     
     data_received................................: 933 MB  7.8 MB/s
     data_sent....................................: 46 MB   386 kB/s
     http_req_blocked.............................: avg=2.58µs   min=1.3µs   med=2.1µs   max=999.2µs p(90)=2.7µs    p(95)=3.1µs   
     http_req_connecting..........................: avg=11ns     min=0s      med=0s      max=817.4µs p(90)=0s       p(95)=0s      
     http_req_duration............................: avg=718.37µs min=326µs   med=591.3µs max=39.45ms p(90)=1.02ms   p(95)=1.15ms  
       { expected_response:true }.................: avg=718.37µs min=326µs   med=591.3µs max=39.45ms p(90)=1.02ms   p(95)=1.15ms  
     ✓ { mode:graphql-jit }.......................: avg=557.4µs  min=326µs   med=484µs   max=22.01ms p(90)=640.5µs  p(95)=722.21µs
     ✓ { mode:graphql-no-parse-validate-cache }...: avg=1.09ms   min=739.5µs med=992.6µs max=39.45ms p(90)=1.24ms   p(95)=1.48ms  
     ✓ { mode:graphql-response-cache }............: avg=625µs    min=386.3µs med=554.1µs max=20.03ms p(90)=718.6µs  p(95)=813.87µs
     ✓ { mode:graphql }...........................: avg=736.66µs min=437.5µs med=642.2µs max=21.51ms p(90)=838.22µs p(95)=986.2µs 
     http_req_failed..............................: 0.00%   ✓ 0          ✗ 114825
     http_req_receiving...........................: avg=43.14µs  min=20.5µs  med=36.4µs  max=8.82ms  p(90)=56.9µs   p(95)=70.5µs  
     http_req_sending.............................: avg=19.83µs  min=7.7µs   med=11.5µs  max=8.64ms  p(90)=25.4µs   p(95)=32.7µs  
     http_req_tls_handshaking.....................: avg=0s       min=0s      med=0s      max=0s      p(90)=0s       p(95)=0s      
     http_req_waiting.............................: avg=655.39µs min=289.8µs med=534.7µs max=39.35ms p(90)=958.9µs  p(95)=1.07ms  
     http_reqs....................................: 114825  956.857533/s
     iteration_duration...........................: avg=1.03ms   min=535.5µs med=907µs   max=39.92ms p(90)=1.35ms   p(95)=1.52ms  
     iterations...................................: 114825  956.857533/s
     vus..........................................: 1       min=1        max=2   
     vus_max......................................: 2       min=2        max=2   

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2023

💻 Website Preview

The latest changes are available as preview in: https://00e05628.graphql-yoga.pages.dev

@theguild-bot theguild-bot mentioned this pull request Sep 27, 2023
@ardatan ardatan merged commit bf602ed into main Sep 27, 2023
27 checks passed
@ardatan ardatan deleted the fix/dynamic-schema-function-type branch September 27, 2023 20:28
This was referenced May 7, 2024
This was referenced May 23, 2024
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.

bug: Custom context not available in function to provide schema
2 participants