// Strings returns list of strings from group-by.
// It is only allowed when executing a group-by query with one field.
Strings returns list of strings from group-by.
It is only allowed when executing a group-by query with one field.
// Strings returns list of strings from group - by . // It is only allowed when executing a group - by query with one field .
func (ftgb *FactTypeGroupBy) Strings(ctx context.Context) ([]string, error) {
	if len(ftgb.fields) > 1 {
		return nil, errors.New("ent: FactTypeGroupBy.Strings is not achievable when grouping more than 1 field")
	}
	var v []string
	if err := ftgb.Scan(ctx, &v); err != nil {
		return nil, err
	}
	return v, nil
}
func ( ftgb * FactTypeGroupBy ) Strings ( ctx context . Context ) ( [ ] string , error ) { if len ( ftgb . fields ) > 1 { return nil , errors . New ( " " ) } var v [ ] string if err := ftgb . Scan ( ctx , & v ) ; err != nil { return nil , err } return v , nil }
Strings returns list of strings from group-by.
Strings returns list of strings from group - by .