aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

DynamoDBBatchGetItemRequest has incorrect type

Open LewisW opened this issue 1 year ago • 0 comments

The type for DynamoDBBatchGetItemRequest includes projection as a top level attribute:

export type DynamoDBBatchGetItemRequest = {
    operation: 'BatchGetItem';
    tables: {
        [tableName: string]: {
            keys: Key[];
            consistentRead?: boolean;
        };
    };
    projection?: DynamoDBProjectionExpression;
};

But the documentation shows it should be on the table:

type DynamoDBBatchGetItemRequest = {
  operation: 'BatchGetItem';
  tables: {
    [tableName: string]: {
      keys: { [key: string]: any }[];
      consistentRead?: boolean; 
      projection?: {
        expression: string;
        expressionNames?: { [key: string]: string };
      };
    };
  };
};

Using version 1.7.0 (the latest as-of posting).

LewisW avatar Apr 09 '24 20:04 LewisW