refactor source code
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import { Builder } from '../../Graphql/graphql.builder';
|
||||
import { Inject, Injectable } from '@nestjs/common'
|
||||
import { Builder } from '../../Graphql/graphql.builder'
|
||||
import {
|
||||
PothosRef,
|
||||
PothosSchema,
|
||||
SchemaBuilderToken,
|
||||
} from '@smatch-corp/nestjs-pothos';
|
||||
} from '@smatch-corp/nestjs-pothos'
|
||||
|
||||
@Injectable()
|
||||
export class CommonGraphqlError extends PothosSchema {
|
||||
constructor(@Inject(SchemaBuilderToken) private readonly builder: Builder) {
|
||||
super();
|
||||
super()
|
||||
}
|
||||
|
||||
@PothosRef()
|
||||
@@ -19,6 +19,6 @@ export class CommonGraphqlError extends PothosSchema {
|
||||
fields: (t) => ({
|
||||
message: t.exposeString('message'),
|
||||
}),
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user