How to achieve multiple Graphql endpoints

0

Using amplify add api, I created a Graphql-based api endpoint to retrieve a list of entities from a DynamoDb table. Now I want to retrieve a list of a second entity type from a different DynamoDb table. Given that I cannot create a second Graphql api using amplify add api or amplify update api, how am I supposed to retrieve a second entity type? Am I supposed to manually add to the schema.json file, the schema.graphql file, and the backend-config.json file? Please advise. Thanks.

AWS
已提問 2 年前檢視次數 595 次
1 個回答
0

You can log to the AppSync console in the AWS management console and use the wizards that are available there such as the "Create Resources" button on the Schema Page. The interface of the web console allows defining resolvers, running queries, and other options to configure your GraphQL schema and backend.

Or you can modify the Schema manually and locally in your Amplify files if you are familiar with the syntax of GraphQL and with the structure of the mapping templates.

MLGuy
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南