export default class GraphqlApiStack extends Stack { api: GraphqlApi constructor (scope: sst.App, id: string, props: GraphqlStackProps) { super(scope, id, props) this.api = new GraphqlApi(this, 'GraphqlApi', { name: 'GraphqlApi', schema: Schema.fromAsset('graphql/schema.graphql'), authorizationConfig: { defaultAuthorization: { authorizationType: AuthorizationType.API_KEY } } }) Aspects.of(this.api).add(new EnforceAppSyncResolverNaming()) } }