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
demandé il y a 2 ans595 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions