I am using gorm in my restful service, and I need to bring the deleted records. I can't see how to bring them and I can't see it in the documentation
thanks everyone, i update the controller working, Controller completed
func GetAllDeletedUsers(c *gin.Context) {
var users []models.Application
if err := db.DB.Unscoped().Where("deleted_at IS NOT NULL").Find(&users); err == nil {
c.AbortWithStatus(404)
fmt.Println(err)
} else {
c.JSON(200, users)
}
}