Closed isheejong closed 4 years ago
I 'm out of idea why happen :(
Hi @isheejong , does your existing schema already have a todo type? If so, creating a table in RDS with the same name will cause a conflict as the queries generated cannot point to both your dynamodb table and RDS tables. Try creating a table with a different name from the types in your existing schema.
Closing due to lack of response. Please feel free to comment if you have further questions.
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels for those types of questions.
I ran into this issue as well and it was because my schema.graphq was not "essentially" empty. I had defined one of my types. Which is why this error was occurring as it wasn't written correct (I'm new to GraphQL).
The solution was to clear out my schema file and only have the following in it...
schema { query: Query }
Then run the amplify api add-graphql-datasource command.
This should then create the schema automatically based on the tables you have created in your RDS serverless cluster. Once the command is complete you should be able to open up amplify/backend/api/[your api name]/schema.graphql and see the automatically created GraphQL schema.
Thank you @Etep15 for taking the time to add your findings 🙏
re-locking conversation 🙂
Which Category is your question related to? amplify api add-graphql-datasource
Amplify CLI Version sogori:amplify-aurora-test heejonglee$ amplify -v 3.17.0 sogori:amplify-aurora-test heejonglee$
What AWS Services are you utilizing?
Provide additional details e.g. code snippets
After add api which use a DynamoDB, I tried to add the data source. but it was failed below like: