Your Question

can i do .Count with filter from struct? like how .Find works with .Find i can do

db.Find(&dest, &input)

with .Count i need to do

db.Where("x=?", y).Count()

The document you expected this should be explained

i cant do filter like i do with Find method https://gorm.io/docs/advanced_query.html#Count

Expected answer

i should be able to filter like i do with Find method https://gorm.io/docs/advanced_query.html#Count