// QueryFacts queries the facts edge of a FactType.
QueryFacts queries the facts edge of a FactType.
// QueryFacts queries the facts edge of a FactType .
func (c *FactTypeClient) QueryFacts(ft *FactType) *FactQuery {
	query := &FactQuery{config: c.config}
	query.path = func(ctx context.Context) (fromV *sql.Selector, _ error) {
		id := ft.ID
		step := sqlgraph.NewStep(
			sqlgraph.From(facttype.Table, facttype.FieldID, id),
			sqlgraph.To(fact.Table, fact.FieldID),
			sqlgraph.Edge(sqlgraph.O2M, false, facttype.FactsTable, facttype.FactsColumn),
		)
		fromV = sqlgraph.Neighbors(ft.driver.Dialect(), step)
		return fromV, nil
	}
	return query
}
func ( c * FactTypeClient ) QueryFacts ( ft * FactType ) * FactQuery { query := & FactQuery { config : c . config } query . path = func ( ctx context . Context ) ( fromV * sql . Selector , _ error ) { id := ft . ID step := sqlgraph . NewStep ( sqlgraph . From ( facttype . Table , facttype . FieldID , id ) , sqlgraph . To ( fact . Table , fact . FieldID ) , sqlgraph . Edge ( sqlgraph . O2M , false , facttype . FactsTable , facttype . FactsColumn ) , ) fromV = sqlgraph . Neighbors ( ft . driver . Dialect ( ) , step ) return fromV , nil } return query }
QueryFacts queries the facts edge of a FactType.
QueryFacts queries the facts edge of a FactType .