amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

best way to edit the generated graphql aws app sync schema in amplify v2?

Open cookiejest opened this issue 1 year ago • 6 comments

Environment information

I need to add additional fields into a few of the generated graphql schema endpoints. Speicfically the 'owner' field. This is so I can use them in the backend to correctly sync data to the front end via graphql.

What is the best way to achieve this? I can make the edits directly in appsync console, but feel there should be a way to do this through amplify v2 that I can keep within my ci/cd pipeline.

Description

E.g I want to add a 'owner' field that have not been added automatically for some reason (I think they should be):

input CreateMessageInput {
	type: String
	message: String
	color: String
	runId: ID
	promptId: ID
	id: ID
	owner: String
}

This way i can use the graphql directly from my backend outside of amplify and have it stay in sync with the amplify v2 on the real time updates.

cookiejest avatar Aug 08 '24 19:08 cookiejest