MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Field

Method Field

app/controlplane/pkg/data/ent/mutation.go:14765–14781  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

14763// return value indicates that this field was not set, or was not defined in the
14764// schema.
14765func (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

Callers 14

HasFieldsFunction · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45

Calls 6

EmailMethod · 0.95
CreatedAtMethod · 0.95
UpdatedAtMethod · 0.95
HasRestrictedAccessMethod · 0.95
FirstNameMethod · 0.95
LastNameMethod · 0.95

Tested by

no test coverage detected