AWS AppSync - Create a Custom Lambda Resolver with Business Logic

Опубликовано: 11 Октябрь 2024
на канале: Henry Ouang
15,061
151

In this video, I show you how to implement custom resolvers in AWS AppSync. This use case is particularly helpful when you need detailed business logic that VTL templates or a simple query won't solve on its own. Custom resolvers allow you to perform much more flexible authorization, query, and business logic.

We implement this by resolving queries on our appsync api to a lambda function, which is where we can then code out custom solutions for your use cases. In this video, I code out a simple if else statement that allows the function to check if a username is authorized to retrieve post data.

Let me know what you guys would like for the next video!
If you enjoyed it, please like, comment, and subscribe. It means a lot to me!

You can contact me at [email protected] for inquiries.

Connect with me on LinkedIn:   / henryouang  
Follow me on Twitter:   / henryouang