16 lines
492 B
TypeScript
16 lines
492 B
TypeScript
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||
|
const transformer = require('@nestjs/graphql/plugin');
|
||
|
|
||
|
module.exports.name = 'nestjs-graphql-transformer';
|
||
|
// you should change the version number anytime you change the configuration below - otherwise, jest will not detect changes
|
||
|
module.exports.version = 1;
|
||
|
|
||
|
module.exports.factory = (cs) => {
|
||
|
return transformer.before(
|
||
|
{
|
||
|
// @nestjs/graphql/plugin options (can be empty)
|
||
|
},
|
||
|
cs.tsCompiler.program,
|
||
|
);
|
||
|
};
|