Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect AWS AppSync to MongoDB?

AppSync is good that it is a managed GraphQL service.

But I dont want to use the DynamoDB, can I plug to MongoDB?

How to do it?

like image 637
Rico Chan Avatar asked Oct 15 '25 02:10

Rico Chan


1 Answers

You cannot directly connect MongoDB to AppSync, But you can create and attach a Lambda function as the DataSource and put all your configuration & mapper logic there. Here is a small tutorial about how to use Lambda resolvers. For your case, you would have to extend it and add MongoDB specific configuration & logic.

like image 96
Neill Avatar answered Oct 18 '25 01:10

Neill



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!