// 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.
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.
// 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 .
func (m *GrantMutation) Field(name string) (ent.Value, bool) {
	switch name {
	case grant.FieldCreatedAt:
		return m.CreatedAt()
	case grant.FieldUpdatedAt:
		return m.UpdatedAt()
	case grant.FieldDeletedAt:
		return m.DeletedAt()
	case grant.FieldHashedGrantToken:
		return m.HashedGrantToken()
	case grant.FieldDomain:
		return m.Domain()
	case grant.FieldVersion:
		return m.Version()
	case grant.FieldAllowedHTTPMethods:
		return m.AllowedHTTPMethods()
	case grant.FieldPaths:
		return m.Paths()
	}
	return nil, false
}
func ( m * GrantMutation ) Field ( name string ) ( ent . Value , bool ) { switch name { case grant . FieldCreatedAt : return m . CreatedAt ( ) case grant . FieldUpdatedAt : return m . UpdatedAt ( ) case grant . FieldDeletedAt : return m . DeletedAt ( ) case grant . FieldHashedGrantToken : return m . HashedGrantToken ( ) case grant . FieldDomain : return m . Domain ( ) case grant . FieldVersion : return m . Version ( ) case grant . FieldAllowedHTTPMethods : return m . AllowedHTTPMethods ( ) case grant . FieldPaths : return m . Paths ( ) } return nil , false }
Field returns the value of a field with the given name.
Field returns the value of a field with the given name .