Skip to content

Commit f27c7e6

Browse files
committed
chore: rename to createStateMachineResolver
1 parent b2c2d40 commit f27c7e6

4 files changed

Lines changed: 42 additions & 42 deletions

File tree

API.md

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface AppSyncDataSourceStepFunctionsExpressProps {
2424
readonly apiId: string;
2525
}
2626

27-
export interface AddStateMachineResolverProps {
27+
export interface CreateStateMachineResolverProps {
2828
readonly stateMachine: StateMachine;
2929
readonly schema: CfnGraphQLSchema;
3030
readonly typeName: string;
@@ -63,7 +63,7 @@ export class AppSyncDataSourceStepFunctionsExpress extends Construct {
6363
});
6464
}
6565

66-
addStateMachineResolver(id: string, props: AddStateMachineResolverProps) {
66+
createStateMachineResolver(id: string, props: CreateStateMachineResolverProps) {
6767
const { stateMachine, schema, typeName, fieldName } = props;
6868
if (stateMachine.stateMachineType !== StateMachineType.EXPRESS) {
6969
throw new Error(`stateMachine must be EXPRESS type. (${stateMachine.stateMachineName} is ${stateMachine.stateMachineType})`);

src/integ.default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const schema = new CfnGraphQLSchema(stack, 'Schema', {
9292
const sfnExpressDataSource = new AppSyncDataSourceStepFunctionsExpress(stack, 'SfnExpressDataSource', {
9393
apiId: api.attrApiId,
9494
});
95-
sfnExpressDataSource.addStateMachineResolver('SumResolver', {
95+
sfnExpressDataSource.createStateMachineResolver('SumResolver', {
9696
stateMachine: sumStateMachine,
9797
schema,
9898
typeName: 'Query',

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const stateMachine = new StateMachine(stack, 'myStateMachine', {
2828
stateMachineType: StateMachineType.EXPRESS,
2929
definition: new Pass(stack, 'Pass'),
3030
});
31-
dataSource.addStateMachineResolver('resolver', {
31+
dataSource.createStateMachineResolver('resolver', {
3232
stateMachine,
3333
schema: new CfnGraphQLSchema(stack, 'Schema', { apiId }),
3434
typeName: 'Query',

0 commit comments

Comments
 (0)