mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: skip selecting group-by fields if they already selected
This commit is contained in:
committed by
Ariel Mashraki
parent
5421d6c628
commit
497fca4c96
@@ -1759,6 +1759,11 @@ func (s *Selector) Select(columns ...string) *Selector {
|
||||
return s
|
||||
}
|
||||
|
||||
// SelectedColumns returns the selected columns of the Selector.
|
||||
func (s *Selector) SelectedColumns() []string {
|
||||
return s.columns
|
||||
}
|
||||
|
||||
// From sets the source of `FROM` clause.
|
||||
func (s *Selector) From(t TableView) *Selector {
|
||||
s.from = t
|
||||
|
||||
Reference in New Issue
Block a user