Learnings in the world of AWS Amplify

This is a growing collection of my learnings from building web applications with AWS Amplify

Photo by Tim Mossholder on Unsplash

Table of Contents

Accessing GraphQL & AppSync from Lambda

What doesn’t work

What works

Get the AppSync GraphQL URL

Allow access to the AppSync API from Lambda

Conclusion

AppSync with Cognito and IAM Access

The pitfall

type User @model @auth {

}

type User
@model
@auth(
rules: [
{ allow: owner }
{ allow: private, provider: userPools, operations: [read] }
{ allow: private, provider: iam, operations: [create, update] }
]) {…}

Calling the REST or GraphQL API from your frontend with Amplify

Strange behavior of GraphQL list queries

Explanation

The Solution

type Post @key(name: “byTitle”, fields: [“titel”]) {…}

@key(name: "byGroup", fields: ["group"], queryField: "domainsByGroups")

Agile Coach, Business Innovator, Software Engineer, Musician

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store