aws-appsync-community
aws-appsync-community copied to clipboard
DynamoDBBatchGetItemRequest has incorrect type
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).