Skip to content

Commit

Permalink
fix documentation of DynamoDB.DocumentClient.transactWrite (#3797)
Browse files Browse the repository at this point in the history
transactWrite uses transactWriteItems under the hood, which has a limit of
25 items per transaction.
  • Loading branch information
Tim Cooper authored Jun 18, 2021
1 parent 882afc1 commit 42620cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dynamodb/document_client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class DocumentClient {
transactGet(params: DocumentClient.TransactGetItemsInput, callback?: (err: AWSError, data: DocumentClient.TransactGetItemsOutput) => void): Request<DocumentClient.TransactGetItemsOutput, AWSError>;

/**
* Synchronous write operation that groups up to 10 action requests
* Synchronous write operation that groups up to 25 action requests.
*/
transactWrite(params: DocumentClient.TransactWriteItemsInput, callback?: (err: AWSError, data: DocumentClient.TransactWriteItemsOutput) => void): Request<DocumentClient.TransactWriteItemsOutput, AWSError>;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/dynamodb/document_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ AWS.DynamoDB.DocumentClient = AWS.util.inherit({
},

/**
* Synchronous write operation that groups up to 10 action requests
* Synchronous write operation that groups up to 25 action requests.
*
* Supply the same parameters as {AWS.DynamoDB.transactWriteItems} with
* `AttributeValue`s substituted by native JavaScript types.
Expand Down

0 comments on commit 42620cb

Please sign in to comment.