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

feat(api): expose generateClient from /server subpath #12691

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

HuiSF
Copy link
Contributor

@HuiSF HuiSF commented Dec 8, 2023

Description of changes

Exposed the generateClient from the subpath aws-amplify/api/server to support use cases with the generic SSR framework adapter runWithAmplifyServerContext exported from the subpath aws-amplify/adapter-core

This PR includes all relevant changes.

Issue #, if available

Supporting: aws-amplify/docs#6591

Description of how you validated changes

  1. unit tests
  2. local tests with:
    • with a Next.js sample app to test the functionalities provided by adapter-nextjs originally
    • with a Nuxt sample app to test the newly expose generateClient

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@HuiSF HuiSF requested review from a team as code owners December 8, 2023 18:40
@HuiSF HuiSF force-pushed the hui/feat/api-graphql/generate-client-server branch from 5254f51 to 12176ae Compare December 8, 2023 18:51
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just moved this file, no new changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This files is the test for the newly added generateClient that's exported from api/serevr. Please ignore the diff, and review the file itself.

iartemiev
iartemiev previously approved these changes Dec 8, 2023
jimblanc
jimblanc previously approved these changes Dec 8, 2023
Copy link
Contributor

@jimblanc jimblanc left a comment

Choose a reason for hiding this comment

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

One nit but LGTM

packages/api-graphql/package.json Outdated Show resolved Hide resolved
@HuiSF HuiSF dismissed stale reviews from jimblanc and iartemiev via 54c8184 December 8, 2023 19:40
@HuiSF HuiSF force-pushed the hui/feat/api-graphql/generate-client-server branch from 12176ae to 54c8184 Compare December 8, 2023 19:40
@HuiSF HuiSF merged commit f4d3873 into main Dec 8, 2023
30 checks passed
@HuiSF HuiSF deleted the hui/feat/api-graphql/generate-client-server branch December 8, 2023 20:11
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