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

DynamoDBBatchGetItemRequest has incorrect type #360

Open
LewisW opened this issue Apr 9, 2024 · 0 comments
Open

DynamoDBBatchGetItemRequest has incorrect type #360

LewisW opened this issue Apr 9, 2024 · 0 comments

Comments

@LewisW
Copy link

LewisW commented Apr 9, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant