Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ When configuring Amplify with `getAmplifyDataClientConfig`, your function consum

Once you have generated the client code, update the function to access the data. The following code creates a todo and then lists all todos.

```ts title="amplify/functions/data-access.ts"
```ts title="amplify/functions/data-access/handler.ts"
//...
const client = generateClient<Schema>();

export const handler: Handler = async (event) => {
Expand Down