Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getCollectionReadingConfig = (
options: CommandLineArguments,
): SeederCollectionReadingOptions => {
const transformers = [];
const replaceIdWithUnderscoreId =
options['replace-id'] || process.env.REPLACE_ID === 'true';
if (replaceIdWithUnderscoreId) {
transformers.push(Seeder.Transformers.replaceDocumentIdWithUnderscoreId);
}
return {
extensions: ['ts', 'js', 'json'],
transformers,
};
};