These are chat archives for jinzhu/gorm

Sep 2016
Sep 27 2016 16:25
Lets say I have a struct called Post, with a few properties in there (Title, Content) but also LikeCount, is it possible to AddSelect("(SELECT COUNT(...) FROM ...) as LikeCount") somehow ?
I could do Select, but I want to retrieve all the fields, only with the count added.
Mr. Zenified
Sep 27 2016 20:22