◾️ Duplicated Schema error
(node:35620) UnhandledPromiseRejectionWarning: Error: Schema must contain uniquely named types but contains multiple types named "Category".
@InputType({ isAbstract: true })
@ObjectType()
@Entity()
export class Category {
@Field((type) => String)
@Column()
name: string;
}
- Set InputType name Uniquely
@InputType('CategoryInputType', { isAbstract: true })
@ObjectType()
@Entity()
export class Category {
@Field((type) => String)
@Column()
name: string;
}