sid88in / serverless-appsync-plugin

serverless plugin for appsync
MIT License
951 stars 189 forks source link

Support for Amplify directives #626

Closed lavirez closed 9 months ago

lavirez commented 10 months ago

If you are using Amplify in the front-end, there comes some directive that are required for code generation and schema generation, I think we need this awsome plugin to pass the those directives to the serverless deployment, so I added those directives to the Schema.ts

bboure commented 10 months ago

Thanks @lavirez

Aren't these directives for the Amplify CLI ? I don't think the Front end (Amplify JS) needs them. I also think that Amplify CLI removes them before deploying to AppSync, and I'm also pretty sure that AppSync will reject them.

Am I missing something?

lavirez commented 10 months ago

Thanks @lavirez

Aren't these directives for the Amplify CLI ? I don't think the Front end (Amplify JS) needs them. I also think that Amplify CLI removes them before deploying to AppSync, and I'm also pretty sure that AppSync will reject them.

Am I missing something?

Thank you @bboure You are right these are for Amplify CLI About the AppSync rejecting the directives, I directly post the Schema from the AppSync console and it works pretty well

The situation is that I need the deployed gpql schema to be downloaded in my Amplify Flutter app.