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