Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* Load the MySqlRelationalDBReader
*/
// eslint-disable-next-line max-len
const dbReader = new AuroraServerlessMySQLDatabaseReader(
answers.region,
answers.secretStoreArn,
answers.dbClusterArn,
answers.databaseName,
AWS
);
/**
* Instantiate a new Relational Schema Transformer and perform
* the db instrospection to get the GraphQL Schema and Template Context
*/
const relationalSchemaTransformer = new RelationalDBSchemaTransformer(dbReader, answers.databaseName);
return relationalSchemaTransformer.introspectDatabaseSchema();
})
.then(graphqlSchemaContext => {