Skip to content

Commit d3bd22a

Browse files
cdk custom resolvers code - indentation updated
1 parent 1bf52df commit d3bd22a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pages/cli/graphql/custom-business-logic.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ export class cdkStack extends cdk.Stack {
593593
}]
594594
);
595595

596-
597596
const function1 = new appsync.CfnFunctionConfiguration(this,"function1",{
598597
apiId: cdk.Fn.ref(retVal.api.replaceWithAPIName.GraphQLAPIIdOutput),
599598
dataSourceName: "NONE_DS", // DataSource name
@@ -602,6 +601,7 @@ export class cdkStack extends cdk.Stack {
602601
requestMappingTemplate: function1requestVTL,
603602
responseMappingTemplate: function1responseVTL
604603
})
604+
605605
const function2 = new appsync.CfnFunctionConfiguration(this,"function2",{
606606
apiId: cdk.Fn.ref(retVal.api.replaceWithAPIName.GraphQLAPIIdOutput),
607607
dataSourceName: "TodoTable", // DataSource name
@@ -620,8 +620,7 @@ export class cdkStack extends cdk.Stack {
620620
functions: [
621621
function1.attrFunctionId,
622622
function2.attrFunctionId
623-
]
624-
},
623+
]},
625624
requestMappingTemplate: beforeMappingVTL,
626625
responseMappingTemplate: afterMappingVTL
627626
})

0 commit comments

Comments
 (0)