// OldField returns the old value of the field from the database. An error is
// returned if the mutation operation is not UpdateOne, or the query to the
// database failed.
OldField returns the old value of the field from the database. An error is
returned if the mutation operation is not UpdateOne, or the query to the
database failed.
// OldField returns the old value of the field from the database . An error is // returned if the mutation operation is not UpdateOne or the query to the // database failed .
func (m *FactTypeMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
	switch name {
	case facttype.FieldCreatedAt:
		return m.OldCreatedAt(ctx)
	case facttype.FieldUpdatedAt:
		return m.OldUpdatedAt(ctx)
	case facttype.FieldDeletedAt:
		return m.OldDeletedAt(ctx)
	case facttype.FieldSlug:
		return m.OldSlug(ctx)
	case facttype.FieldBuiltIn:
		return m.OldBuiltIn(ctx)
	case facttype.FieldValidation:
		return m.OldValidation(ctx)
	}
	return nil, fmt.Errorf("unknown FactType field %s", name)
}
func ( m * FactTypeMutation ) OldField ( ctx context . Context , name string ) ( ent . Value , error ) { switch name { case facttype . FieldCreatedAt : return m . OldCreatedAt ( ctx ) case facttype . FieldUpdatedAt : return m . OldUpdatedAt ( ctx ) case facttype . FieldDeletedAt : return m . OldDeletedAt ( ctx ) case facttype . FieldSlug : return m . OldSlug ( ctx ) case facttype . FieldBuiltIn : return m . OldBuiltIn ( ctx ) case facttype . FieldValidation : return m . OldValidation ( ctx ) } return nil , fmt . Errorf ( " " , name ) }
OldField returns the old value of the field from the database.
OldField returns the old value of the field from the database .