You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ignoreDecorators argument does not seem to work with the @exclude annotation (class-transformer) in the entity.
Is it possible to fix this?
For example:
@Entity()exportclassLand{
@PrimaryColumn()id: number;
@Column()name: string;// List of land ids that are adjacent to this land
@ApiHideProperty()
@Exclude()
@Column({nullable: true,type: 'simple-json'})borders: Array<number>;}
Hello! I initially tried to fix this issue by using @Exclude({ toPlainOnly: true }).
Using --ignoreDecorators worked in my case, thanks @oscargdi !
Here's the command that worked for me: fixtures-ts-node-commonjs load ./fixture -d src/app.data-source.ts --debug --ignoreDecorators
The
ignoreDecorators
argument does not seem to work with the @exclude annotation (class-transformer) in the entity.Is it possible to fix this?
For example:
> Result: the
borders
fields are not defined.The text was updated successfully, but these errors were encountered: