serverless-appsync-plugin icon indicating copy to clipboard operation
serverless-appsync-plugin copied to clipboard

Don't update scheam on deployment to API that already exists

Open tayler-kemsley opened this issue 1 year ago • 2 comments

Hey folks,

We've got a usecase where the schema stored in our repo is deployed initially, then changed on the fly by users. The problem we're facing is that when we run serverless deploy to push changes, the schema is getting overriden and replaced with that original schema.

Is there a way of supressing the schema changes if the API already exists, but still push other AppSync at the API level?

tayler-kemsley avatar Feb 16 '23 18:02 tayler-kemsley

Hi,

I don't think this is possible. The schema is required by CloudFormation. What is your use-case? How does the schema change and why?

bboure avatar Feb 18 '23 12:02 bboure

Hi, I'd also find this feature very useful. We allow users to edit the schema via an API, which pushes schema changes to AppSync via the SDK, so the schema we have in code and the schema users see becomes out of sync. The result is that deploying new versions always results in downtime while we push all the user changes back into AppSync.

tayler-kemsley avatar Oct 18 '23 07:10 tayler-kemsley