-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Description
typeorm/src/repository/Repository.ts
Lines 459 to 482 in 12a71e4
| /** | |
| * Restores entities by a given criteria. | |
| * Unlike save method executes a primitive operation without cascades, relations and other operations included. | |
| * Executes fast and efficient SOFT-DELETE query. | |
| * Does not check if entity exist in the database. | |
| */ | |
| restore( | |
| criteria: | |
| | string | |
| | string[] | |
| | number | |
| | number[] | |
| | Date | |
| | Date[] | |
| | ObjectId | |
| | ObjectId[] | |
| | FindOptionsWhere<Entity> | |
| | FindOptionsWhere<Entity>[], | |
| ): Promise<UpdateResult> { | |
| return this.manager.restore( | |
| this.metadata.target as any, | |
| criteria as any, | |
| ) | |
| } |
is Executes fast and efficient SOFT-DELETE query correct for restore method?
Should not this be Executes fast and efficient restore query?
Metadata
Metadata
Assignees
Labels
No labels