// FactTypeOrErr returns the FactType value or an error if the edge
// was not loaded in eager-loading, or loaded but was not found.
FactTypeOrErr returns the FactType value or an error if the edge
was not loaded in eager-loading, or loaded but was not found.
// FactTypeOrErr returns the FactType value or an error if the edge // was not loaded in eager - loading or loaded but was not found .
func (e FactEdges) FactTypeOrErr() (*FactType, error) {
	if e.loadedTypes[1] {
		if e.FactType == nil {
			return nil, &NotFoundError{label: facttype.Label}
		}
		return e.FactType, nil
	}
	return nil, &NotLoadedError{edge: "fact_type"}
}
func ( e FactEdges ) FactTypeOrErr ( ) ( * FactType , error ) { if e . loadedTypes [ 1 ] { if e . FactType == nil { return nil , & NotFoundError { label : facttype . Label } } return e . FactType , nil } return nil , & NotLoadedError { edge : " " } }
FactTypeOrErr returns the FactType value or an error if the edge
was not loaded in eager-loading, or loaded but was not found.
FactTypeOrErr returns the FactType value or an error if the edge was not loaded in eager - loading or loaded but was not found .
// The edge fact_type was loaded in eager-loading, // but was not found.