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)
| 4462 | // return value indicates that this field was not set, or was not defined in the |
| 4463 | // schema. |
| 4464 | func (m *GroupMutation) Field(name string) (ent.Value, bool) { |
| 4465 | switch name { |
| 4466 | case group.FieldName: |
| 4467 | return m.Name() |
| 4468 | case group.FieldDescription: |
| 4469 | return m.Description() |
| 4470 | case group.FieldOrganizationID: |
| 4471 | return m.OrganizationID() |
| 4472 | case group.FieldCreatedAt: |
| 4473 | return m.CreatedAt() |
| 4474 | case group.FieldUpdatedAt: |
| 4475 | return m.UpdatedAt() |
| 4476 | case group.FieldDeletedAt: |
| 4477 | return m.DeletedAt() |
| 4478 | case group.FieldMemberCount: |
| 4479 | return m.MemberCount() |
| 4480 | } |
| 4481 | return nil, false |
| 4482 | } |
| 4483 | |
| 4484 | // OldField returns the old value of the field from the database. An error is |
| 4485 | // returned if the mutation operation is not UpdateOne, or the query to the |
nothing calls this directly
no test coverage detected