// String returns a single string from a selector. It is only allowed when selecting one field.
String returns a single string from a selector. It is only allowed when selecting one field.
// String returns a single string from a selector . It is only allowed when selecting one field .
func (aas *APIAuditSelect) String(ctx context.Context) (_ string, err error) {
	var v []string
	if v, err = aas.Strings(ctx); err != nil {
		return
	}
	switch len(v) {
	case 1:
		return v[0], nil
	case 0:
		err = &NotFoundError{apiaudit.Label}
	default:
		err = fmt.Errorf("ent: APIAuditSelect.Strings returned %d results when one was expected", len(v))
	}
	return
}
func ( aas * APIAuditSelect ) String ( ctx context . Context ) ( _ string , err error ) { var v [ ] string if v , err = aas . Strings ( ctx ) ; err != nil { return } switch len ( v ) { case 1 : return v [ 0 ] , nil case 0 : err = & NotFoundError { apiaudit . Label } default : err = fmt . Errorf ( " " , len ( v ) ) } return }
String returns a single string from a selector.
String returns a single string from a selector .