// QueryFacts chains the current query on the "facts" edge.
QueryFacts chains the current query on the "facts" edge.
// QueryFacts chains the current query on the " facts " edge .
func (ftq *FactTypeQuery) QueryFacts() *FactQuery {
	query := &FactQuery{config: ftq.config}
	query.path = func(ctx context.Context) (fromU *sql.Selector, err error) {
		if err := ftq.prepareQuery(ctx); err != nil {
			return nil, err
		}
		selector := ftq.sqlQuery(ctx)
		if err := selector.Err(); err != nil {
			return nil, err
		}
		step := sqlgraph.NewStep(
			sqlgraph.From(facttype.Table, facttype.FieldID, selector),
			sqlgraph.To(fact.Table, fact.FieldID),
			sqlgraph.Edge(sqlgraph.O2M, false, facttype.FactsTable, facttype.FactsColumn),
		)
		fromU = sqlgraph.SetNeighbors(ftq.driver.Dialect(), step)
		return fromU, nil
	}
	return query
}
func ( ftq * FactTypeQuery ) QueryFacts ( ) * FactQuery { query := & FactQuery { config : ftq . config } query . path = func ( ctx context . Context ) ( fromU * sql . Selector , err error ) { if err := ftq . prepareQuery ( ctx ) ; err != nil { return nil , err } selector := ftq . sqlQuery ( ctx ) if err := selector . Err ( ) ; err != nil { return nil , err } step := sqlgraph . NewStep ( sqlgraph . From ( facttype . Table , facttype . FieldID , selector ) , sqlgraph . To ( fact . Table , fact . FieldID ) , sqlgraph . Edge ( sqlgraph . O2M , false , facttype . FactsTable , facttype . FactsColumn ) , ) fromU = sqlgraph . SetNeighbors ( ftq . driver . Dialect ( ) , step ) return fromU , nil } return query }
QueryFacts chains the current query on the "facts" edge.
QueryFacts chains the current query on the " facts " edge .