Skip to content

Commit 4ff92bc

Browse files
author
Dane Pilcher
committed
use single quotes
1 parent 03dd5ca commit 4ff92bc

File tree

1 file changed

+5
-5
lines changed
  • src/pages/[platform]/build-a-backend/data/custom-business-logic/batch-ddb-operations

1 file changed

+5
-5
lines changed

src/pages/[platform]/build-a-backend/data/custom-business-logic/batch-ddb-operations/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const schema = a.schema({
5151
.arguments({
5252
content: a.string().array()
5353
})
54-
.returns(a.ref("Post").array())
54+
.returns(a.ref('Post').array())
5555
// only allow signed-in users to call this API
5656
.authorization(allow => [allow.authenticated()])
5757
});
@@ -86,13 +86,13 @@ const schema = a.schema({
8686
.arguments({
8787
contents: a.string().array()
8888
})
89-
.returns(a.ref("Post").array())
89+
.returns(a.ref('Post').array())
9090
.authorization(allow => [allow.authenticated()])
9191
// 1. Add the custom handler
9292
.handler(
9393
a.handler.custom({
94-
dataSource: a.ref("Post"),
95-
entry: "./BatchCreatePostHandler.js",
94+
dataSource: a.ref('Post'),
95+
entry: './BatchCreatePostHandler.js',
9696
})
9797
)
9898
});
@@ -119,7 +119,7 @@ export function request(ctx) {
119119
var now = util.time.nowISO8601();
120120

121121
return {
122-
operation: "BatchPutItem",
122+
operation: 'BatchPutItem',
123123
tables: {
124124
[`Post-${ctx.stash.awsAppsyncApiId}-${ctx.stash.amplifyBranchName}`]: ctx.args.contents.map((content) =>
125125
util.dynamodb.toMapValues({

0 commit comments

Comments
 (0)