@@ -51,7 +51,7 @@ const schema = a.schema({
51
51
.arguments ({
52
52
content: a .string ().array ()
53
53
})
54
- .returns (a .ref (" Post" ).array ())
54
+ .returns (a .ref (' Post' ).array ())
55
55
// only allow signed-in users to call this API
56
56
.authorization (allow => [allow .authenticated ()])
57
57
});
@@ -86,13 +86,13 @@ const schema = a.schema({
86
86
.arguments ({
87
87
contents: a .string ().array ()
88
88
})
89
- .returns (a .ref (" Post" ).array ())
89
+ .returns (a .ref (' Post' ).array ())
90
90
.authorization (allow => [allow .authenticated ()])
91
91
// 1. Add the custom handler
92
92
.handler (
93
93
a .handler .custom ({
94
- dataSource: a .ref (" Post" ),
95
- entry: " ./BatchCreatePostHandler.js" ,
94
+ dataSource: a .ref (' Post' ),
95
+ entry: ' ./BatchCreatePostHandler.js' ,
96
96
})
97
97
)
98
98
});
@@ -119,7 +119,7 @@ export function request(ctx) {
119
119
var now = util .time .nowISO8601 ();
120
120
121
121
return {
122
- operation: " BatchPutItem" ,
122
+ operation: ' BatchPutItem' ,
123
123
tables: {
124
124
[` Post-${ctx .stash .awsAppsyncApiId }-${ctx .stash .amplifyBranchName } ` ]: ctx .args .contents .map ((content ) =>
125
125
util .dynamodb .toMapValues ({
0 commit comments