Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
(name string)
| 14763 | // return value indicates that this field was not set, or was not defined in the |
| 14764 | // schema. |
| 14765 | func (m *UserMutation) Field(name string) (ent.Value, bool) { |
| 14766 | switch name { |
| 14767 | case user.FieldEmail: |
| 14768 | return m.Email() |
| 14769 | case user.FieldCreatedAt: |
| 14770 | return m.CreatedAt() |
| 14771 | case user.FieldUpdatedAt: |
| 14772 | return m.UpdatedAt() |
| 14773 | case user.FieldHasRestrictedAccess: |
| 14774 | return m.HasRestrictedAccess() |
| 14775 | case user.FieldFirstName: |
| 14776 | return m.FirstName() |
| 14777 | case user.FieldLastName: |
| 14778 | return m.LastName() |
| 14779 | } |
| 14780 | return nil, false |
| 14781 | } |
| 14782 | |
| 14783 | // OldField returns the old value of the field from the database. An error is |
| 14784 | // returned if the mutation operation is not UpdateOne, or the query to the |
no test coverage detected