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
Find, FindBy, FindOne, FindOneBy all do not work properly when @DeleteDateColumn() is used
DB: MongoDB
Typescript 4.7.4
Typeorm 0.3.7
Create a few entries with different names, try to find 1 entry by using
await VenueSVG.find({ where: { name: "test-7" } });
await VenueSVG.findOne( { name: "test-7" } );
Expected Behavior
Should result in getting entries where name == "test-7"
Actual Behavior
Returns the 1st entry when using findOne()
Returns all entries when using find()
Steps to Reproduce
`export class VenueSVG extends BaseEntity {
@ObjectIdColumn()
id!: ObjectID;
I've been through same issue. I'll try this job!
If you need to work with DeleteDateColumn right now in typeorm@^0.3.0, you can do like this (but this is temporary solution. it will return deleted data)
Issue Description
Find, FindBy, FindOne, FindOneBy all do not work properly when @DeleteDateColumn() is used
DB: MongoDB
Typescript 4.7.4
Typeorm 0.3.7
Create a few entries with different names, try to find 1 entry by using
await VenueSVG.find({ where: { name: "test-7" } });
await VenueSVG.findOne( { name: "test-7" } );
Expected Behavior
Should result in getting entries where name == "test-7"
Actual Behavior
Steps to Reproduce
`export class VenueSVG extends BaseEntity {
@ObjectIdColumn()
id!: ObjectID;
@column()
name!: string;
@DeleteDateColumn()
deletedDate!: Date;
}
`
The text was updated successfully, but these errors were encountered: