Open lrstanley opened 4 weeks ago
Annotation or similar that would allow passing in a name, along with options ...pet.OrderOption, where the options could look like:
name
options ...pet.OrderOption
user.ByPosts( sql.OrderBySum(post.FieldNumLikes), sql.OrderBySum(post.FieldNumViews), )
The above example would sum post likes + views, effectively "by popularity".
Ref: https://entgo.io/docs/paging#custom-edge-terms
Annotation or similar that would allow passing in a
name
, along withoptions ...pet.OrderOption
, where the options could look like:The above example would sum post likes + views, effectively "by popularity".
Ref: https://entgo.io/docs/paging#custom-edge-terms