[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-appsync-dynamodb-singletable-js-resolver":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":56,"testing":57,"videoId":6,"__hash__":60},"patterns\u002Fpatterns\u002Fappsync-dynamodb-singletable-js-resolver.json","AWS AppSync to Amazon DynamoDB using JS resolvers",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falexis-philippart-de-foy.json",{"text":13},[14],"sam deploy","Use AWS AppSync JS resolvers to query an Amazon DynamoDB table using single table design.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fappsync-dynamodb-singletable-js-resolver","serverless-patterns\u002Fappsync-dynamodb-singletable-js-resolver","appsync-dynamodb-singletable-js-resolver","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This sample project creates an AppSync API with a schema and a JavaScript pipeline resolver to query a DynamoDB table following a single table design model.","Using JS pipeline resolvers can help you easily transform your query to retrieve nested records in your DynamoDB table in a single API call.","Node.js","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"appsync","AWS AppSync",{"x":39,"y":35,"service":40,"label":41},80,"dynamodb","Amazon DynamoDB",{"from":43,"to":44,"label":45},"icon1","icon2","JS resolver",{"bullets":47},[48,50,53],{"text":37,"link":49},"https:\u002F\u002Faws.amazon.com\u002Fappsync\u002F",{"text":51,"link":52},"AWS AppSync - JS resolvers","https:\u002F\u002Fdocs.aws.amazon.com\u002Fappsync\u002Flatest\u002Fdevguide\u002Fresolver-reference-overview-js.html",{"text":54,"link":55},"AWS AppSync - AWS SAM AppSync abstraction","https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fsam-resource-graphqlapi.html","patterns\u002Fappsync-dynamodb-singletable-js-resolver",{"text":58},[59],"See the GitHub repo for detailed testing instructions.","cQY3GL6Vf3gEacKcyZ5ffVSTBlwjzkf81ewSDDRxOFk",1778927706227]