Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom Queries doc might be wrong #8267

@Tryanium

Description

@Tryanium

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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions