When tableStruct have gorm.Model inside, how to get first record by id without gorm automatically adding deleted_at IS NULL? Is there such function?
After reading the source code, there are Unscoped method to prevent adding deleted_at IS NULL
Database.Unscoped().First(&tableStruct, id)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With