AWS Amplify/Appsync - Added a table to the schema, but api not updated

0

Hi I have added an additional table to schema.graphql and run amplify publish. The table has been created but I am not seeing new methods in the mutations.js/queries.js/subscriptions.js files to reflect the new table. This is a vue js app. Is there any other command I need to run to update the local sources?

Thanks

2개 답변
0

Hi Alatech

Thanks for your suggestion. I tried amplify push (which I think just pushes the backend) and then tried publish (I think pushes back and frontend?). Anyway, if I now do an 'amplify status' it returns that there are no changes in any of the Auth, Api or Hosting (the 3 amplify services I am using). If I do an 'amplify push' it simply returns with 'no changes detected' and returns. I have edited the schema a few times and tried push and publish and the files in /graphql/amplify are not being updated to reflect the new table. They have code to reflect the existing tables I have created.

답변함 일 년 전
  • That is odd.

    Can you try to update the api amplify update api

    and then select GraphQL and Disable Conflict Detection as see if helps?

  • Hi Alatech Looks like conflict detection is already off. I ran the command and it provides the status:

    Conflict detection (required for DataStore)

    • Disabled

    I will post a support query with AWS and update this post if/when I get a resolution

0

Hi,

You can try with amplify push.

Modify the resources and even before deployment, it should show all resources that are going to be updated and Unchnged ones.

Hope it helps

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠