Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Queries doc might be wrong #8267

Open
Tryanium opened this issue Feb 24, 2025 · 2 comments
Open

Custom Queries doc might be wrong #8267

Tryanium opened this issue Feb 24, 2025 · 2 comments
Labels
amplify/data Issue related to aws-amplify/amplify-category-api amplify/flutter

Comments

@Tryanium
Copy link

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/

@Tryanium
Copy link
Author

@salihgueler Tag for investigating

@Tryanium Tryanium changed the title Custom Queries doc is wrong Custom Queries doc might be wrong Feb 24, 2025
@jjarvisp jjarvisp added amplify/flutter amplify/data Issue related to aws-amplify/amplify-category-api labels Feb 24, 2025
@jjarvisp
Copy link
Member

Hey @Tryanium, thanks for opening this issue! We appreciate you pointing this out; we'll look into the best way to close this gap and get a Flutter example added to this section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amplify/data Issue related to aws-amplify/amplify-category-api amplify/flutter
Projects
None yet
Development

No branches or pull requests

2 participants