// Bools returns list of bools from a selector. It is only allowed when selecting one field.
Bools returns list of bools from a selector. It is only allowed when selecting one field.
// Bools returns list of bools from a selector . It is only allowed when selecting one field .
func (fts *FactTypeSelect) Bools(ctx context.Context) ([]bool, error) {
	if len(fts.fields) > 1 {
		return nil, errors.New("ent: FactTypeSelect.Bools is not achievable when selecting more than 1 field")
	}
	var v []bool
	if err := fts.Scan(ctx, &v); err != nil {
		return nil, err
	}
	return v, nil
}
func ( fts * FactTypeSelect ) Bools ( ctx context . Context ) ( [ ] bool , error ) { if len ( fts . fields ) > 1 { return nil , errors . New ( " " ) } var v [ ] bool if err := fts . Scan ( ctx , & v ) ; err != nil { return nil , err } return v , nil }
Bools returns list of bools from a selector.
Bools returns list of bools from a selector .