aws-amplify / aws-amplify/docs

Custom Queries doc might be wrong

Open
#8,267 2 comments 0 reactions 0 assignees View on GitHub
amplify/android amplify/flutter amplify/ios
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

Description

**Describe the content issue**:
Hi Team! I'm trying to use the Custom Queries, to make BatchPut on Dynamo, I've followed the example in the doc: https://docs.amplify.aws/flutter/build-a-backend/data/custom-business-logic/batch-ddb-operations/
At the end of the example
```
const { data, errors } = await client.mutations.BatchCreatePost({
contents: ['Post 1', 'Post 2', 'Post 3']
});
```
There is a client, but for the rest of examples there is no "client" it's only
```
final request = ModelMutations.create(todo);
final response = await Amplify.API.mutate(request: request).response;
```

this seems to be a Typescript example in the flutter section.

**URL page where content issue is**:
https://docs.amplify.aws/flutter/build-a-backend/data/custom-business-logic/batch-ddb-operations/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.