From 4ff92bc0250b22951281c1ba74bac27cc9e7256a Mon Sep 17 00:00:00 2001 From: Dane Pilcher Date: Wed, 11 Dec 2024 08:44:54 -0700 Subject: [PATCH] use single quotes --- .../batch-ddb-operations/index.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/[platform]/build-a-backend/data/custom-business-logic/batch-ddb-operations/index.mdx b/src/pages/[platform]/build-a-backend/data/custom-business-logic/batch-ddb-operations/index.mdx index ccaf92785c4..90319a0cd55 100644 --- a/src/pages/[platform]/build-a-backend/data/custom-business-logic/batch-ddb-operations/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/custom-business-logic/batch-ddb-operations/index.mdx @@ -51,7 +51,7 @@ const schema = a.schema({ .arguments({ content: a.string().array() }) - .returns(a.ref("Post").array()) + .returns(a.ref('Post').array()) // only allow signed-in users to call this API .authorization(allow => [allow.authenticated()]) }); @@ -86,13 +86,13 @@ const schema = a.schema({ .arguments({ contents: a.string().array() }) - .returns(a.ref("Post").array()) + .returns(a.ref('Post').array()) .authorization(allow => [allow.authenticated()]) // 1. Add the custom handler .handler( a.handler.custom({ - dataSource: a.ref("Post"), - entry: "./BatchCreatePostHandler.js", + dataSource: a.ref('Post'), + entry: './BatchCreatePostHandler.js', }) ) }); @@ -119,7 +119,7 @@ export function request(ctx) { var now = util.time.nowISO8601(); return { - operation: "BatchPutItem", + operation: 'BatchPutItem', tables: { [`Post-${ctx.stash.awsAppsyncApiId}-${ctx.stash.amplifyBranchName}`]: ctx.args.contents.map((content) => util.dynamodb.toMapValues({