Upsert users when they login
We start with an example that's mostly handled for us by Auth0, but is still a good way to talk about the basics. You most often want to have the concept of a user in your own database too.
Prepare GraphQL mutation
Mutation resolver
Create DynamoDB table
Here you'll see me copy paste a dynamodb.ts file from an older project. After reviewing this step I decided to open source that file as a library and recommend you install that instead.
# in <project>/serveryarn add simple-dynamodb