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.

已回答 1 年前
  • 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
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则