Sample code points to a schema.gql file that does not exist.
newappsync.GraphqlApi(stack,'api',{name: 'api',schema: appsync.Schema.fromAsset(path.join(__dirname,'schema.gql')),authorizationConfig: {defaultAuthorization: {authorizationType: appsync.AuthorizationType.LAMBDA,lambdaAuthorizerConfig: {handler: authFunction.resource,},},},});
Sample code points to a
schema.gqlfile that does not exist.