dynalite icon indicating copy to clipboard operation
dynalite copied to clipboard

does dynalite support BatchExecuteStatementCommand ???

Open adrys-lab opened this issue 3 years ago • 0 comments

we are trying to introduce this feature in our main source code but when running tests with jest-dynalite,

  const params = {
    Statements: oAuthIds.slice(0, batchSize).map((id) => {
      return {
        Statement:
          "UPDATE " +
          process.env.OAUTH_TOKENS_TABLE_NAME +
          " SET rateLimit=? where tokenValue=?",
        Parameters: [{ N: rateLimit.toString() }, { S: id.toString() }],
      };
    }),
  };

  await getDynamoDBClient().send(new BatchExecuteStatementCommand(params));

It is giving us a UnknownOperationException: UnknownError with a 400.

Is there such feature with dynalite ? is there any prevision to introduce it ?

adrys-lab avatar Nov 22 '22 08:11 adrys-lab