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

add nextjs edge example #2471

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

add nextjs edge example #2471

wants to merge 6 commits into from

Conversation

n1ru4l
Copy link
Collaborator

@n1ru4l n1ru4l commented Feb 20, 2023

TODO:

  • end2end tests
  • documentation page

@changeset-bot
Copy link

changeset-bot bot commented Feb 20, 2023

⚠️ No Changeset found

Latest commit: 41a4ffa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2023

🚀 Snapshot Release (alpha)

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

Package Version Info
@graphql-yoga/apollo-link 1.6.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/urql-exchange 1.6.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/common 3.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
graphql-yoga 3.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/node 3.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-apollo-inline-trace 1.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-apq 1.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-csrf-prevention 1.3.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-defer-stream 1.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-disable-introspection 0.6.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-graphql-sse 1.3.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-persisted-operations 1.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-prometheus 1.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-response-cache 1.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-sofa 1.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎
@graphql-yoga/render-graphiql 3.7.1-alpha-20230228090537-8a1eab53 npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2023

💻 Website Preview

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 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% ✓ 310556      ✗ 0     
     data_received................................: 1.3 GB  11 MB/s
     data_sent....................................: 63 MB   522 kB/s
     http_req_blocked.............................: avg=1.77µs   min=1µs      med=1.5µs    max=2.55ms   p(90)=2.1µs    p(95)=2.4µs   
     http_req_connecting..........................: avg=8ns      min=0s       med=0s       max=649.61µs p(90)=0s       p(95)=0s      
     http_req_duration............................: avg=516.98µs min=274.4µs  med=417.2µs  max=31.61ms  p(90)=767.81µs p(95)=797.81µs
       { expected_response:true }.................: avg=516.98µs min=274.4µs  med=417.2µs  max=31.61ms  p(90)=767.81µs p(95)=797.81µs
     ✓ { mode:graphql-jit }.......................: avg=386.13µs min=274.4µs  med=341.5µs  max=16.96ms  p(90)=405.5µs  p(95)=437.19µs
     ✓ { mode:graphql-no-parse-validate-cache }...: avg=832.51µs min=689.11µs med=765.81µs max=30.53ms  p(90)=830.81µs p(95)=907.77µs
     ✓ { mode:graphql-response-cache }............: avg=436.48µs min=318.8µs  med=398.6µs  max=14.2ms   p(90)=444.8µs  p(95)=463.3µs 
     ✓ { mode:graphql }...........................: avg=541.7µs  min=401.3µs  med=466.9µs  max=31.61ms  p(90)=554µs    p(95)=637.71µs
     http_req_failed..............................: 0.00%   ✓ 0           ✗ 155278
     http_req_receiving...........................: avg=31.1µs   min=16.8µs   med=26.7µs   max=11.65ms  p(90)=39µs     p(95)=43.8µs  
     http_req_sending.............................: avg=13.52µs  min=6.2µs    med=8.3µs    max=4.7ms    p(90)=13.4µs   p(95)=15.3µs  
     http_req_tls_handshaking.....................: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting.............................: avg=472.35µs min=244.7µs  med=375.5µs  max=30.88ms  p(90)=730.91µs p(95)=754.21µs
     http_reqs....................................: 155278  1293.966312/s
     iteration_duration...........................: avg=766.84µs min=479.5µs  med=665.11µs max=34.99ms  p(90)=1.01ms   p(95)=1.05ms  
     iterations...................................: 155278  1293.966312/s
     vus..........................................: 1       min=1         max=1   
     vus_max......................................: 2       min=2         max=2   

@n1ru4l n1ru4l force-pushed the chore-nextjs-edge-example branch 2 times, most recently from 4209413 to 8a1eab5 Compare February 28, 2023 09:02
JSON.stringify({
projectId: responseJson.id,
// TODO: figure out how we can `orgId` without inlining it.
orgId: 'team_pW5VoIWWt8KcRXmQoKn2dxpa',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@n1ru4l you can use getTeamId

update lockfile

chore: add vercel edge end2end test

lockfile

run e2e test

adjustments

fix lockfile

pls work

adjust example

might this work?

small documentation improvements

try use cli
@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 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:

@theguild-bot theguild-bot mentioned this pull request Apr 20, 2023
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.

None yet

3 participants