Is there an easy way to query by the count of a slice field?
Example:
// ItemA holds a slice of strings
type ItemA struct {
IDs []string `json:"items"`
}
I would like to have the top 10 ItemAs which have the most IDs related to them.
Therefore I would like to sort by the count of IDs field.
Is this scenario possible?