AWS AppSync - Create a Custom Lambda Resolver with Business Logic

Sdílet
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

Komentáře • 6

  • @julianmarsal8542
    @julianmarsal8542 Před 2 lety

    Thanks for the video! It was very helpful for me right now that I am struggling with appsync at work. greetings from Argentina!

  • @omol_is_in_the_building

    Awesome stuff, thanks man!

  • @dsmgroup6426
    @dsmgroup6426 Před 2 měsíci

    how to define. the schema if the response is a json array? for example { addresses: [{}] } ?

  • @johnduke2193
    @johnduke2193 Před 2 lety

    so helpful thanks!

  • @tienbui2770
    @tienbui2770 Před 2 lety

    Hi Henry, Do you know how we can get the whole query to pass it to a downstream graphql server?

  • @piyushjadhav2448
    @piyushjadhav2448 Před rokem

    How can we put data from appsync?