(ctx)
| 6 | * @returns {import('@aws-appsync/utils').DynamoDBBatchGetItemRequest} the request |
| 7 | */ |
| 8 | export function request(ctx) { |
| 9 | return { |
| 10 | operation: 'BatchGetItem', |
| 11 | tables: { |
| 12 | Posts: { |
| 13 | keys: ctx.args.ids.map((id) => util.dynamodb.toMapValues({ id })), |
| 14 | consistentRead: true, |
| 15 | }, |
| 16 | }, |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Returns the BatchGetItem table items |
nothing calls this directly
no outgoing calls
no test coverage detected