-
Notifications
You must be signed in to change notification settings - Fork 79
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
Transform GraphQL Amplify Schema to AppSync Schema #2390
Comments
Hi @itzcull, there are three ways I can think of that you could accomplish this.
Option 1 will probably be the most stable. However, I can't confidently say that the transformer behavior between the Gen 1 cli ( |
Thanks for the response @dpilch!
|
This will contain the transformed schema as a string. However, this is accessing properties that are currently set to private (hence the |
Hey 👋 , This issue is being closed due to inactivity. If you are still experiencing the same problem and need further assistance, please feel free to leave a comment. This will enable us to reopen the issue and provide you with the necessary support. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Amplify CLI Version
0.0.0
Question
Is it possible to transform the amplify schema with all it's unique directives to the relevant app sync schema without providing cdk stack context.
Phrased differently, I'd like to take our schema with directives like
@model
,@auth
,@primaryKey
etc and convert it to what is visible in the AppSync console with directives like@aws_iam
, and@aws_cognito_user_pools
and AWS Scalars left over.We generate software artefacts with graphql codegen tools which rely on non-amplify specific SDLs to be present, so it's imperative we transform the schema before running it.
Our team is no longer using amplify cli, we're using SST, a framework for provisioning infrastructure with level 2/3 cdk constructs, we can go lower level if required, we're just looking to reduce effort in the short term due to product delivery pressures
We were reading the generated app sync schema file from the generated cloud formation json AFTER compiling all the cdk constructs, but we still want the 'search' queries associated with the
@searchable
directive to be included in the output even though we don't deploy Open Search in every environment (we strip the@searchable
directive when in a non-prod environment).The text was updated successfully, but these errors were encountered: