AWS AppSync - Create a Custom Lambda Resolver with Business Logic
Vložit
- čas přidán 13. 09. 2024
- 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 admin@enteleca.com for inquiries.
Connect with me on LinkedIn: / henryouang
Follow me on Twitter: / henryouang
Thanks for the video! It was very helpful for me right now that I am struggling with appsync at work. greetings from Argentina!
Awesome stuff, thanks man!
how to define. the schema if the response is a json array? for example { addresses: [{}] } ?
so helpful thanks!
Hi Henry, Do you know how we can get the whole query to pass it to a downstream graphql server?
How can we put data from appsync?