MCPcopy Create free account
hub / github.com/aws-samples/aws-appsync-resolver-samples / request

Function request

samples/dynamodb/batch/batchPutItems.js:8–15  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

6 * @returns {import('@aws-appsync/utils').DynamoDBBatchPutItemRequest} the request
7 */
8export function request(ctx) {
9 return {
10 operation: 'BatchPutItem',
11 tables: {
12 Posts: ctx.args.posts.map((post) => util.dynamodb.toMapValues(post)),
13 },
14 };
15}
16
17/**
18 * Returns the BatchPutItem table results

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected