// QueryScope queries the scope edge of a Fact.
QueryScope queries the scope edge of a Fact.
// QueryScope queries the scope edge of a Fact .
func (c *FactClient) QueryScope(f *Fact) *ScopeQuery {
	query := &ScopeQuery{config: c.config}
	query.path = func(ctx context.Context) (fromV *sql.Selector, _ error) {
		id := f.ID
		step := sqlgraph.NewStep(
			sqlgraph.From(fact.Table, fact.FieldID, id),
			sqlgraph.To(scope.Table, scope.FieldID),
			sqlgraph.Edge(sqlgraph.M2O, true, fact.ScopeTable, fact.ScopeColumn),
		)
		fromV = sqlgraph.Neighbors(f.driver.Dialect(), step)
		return fromV, nil
	}
	return query
}
func ( c * FactClient ) QueryScope ( f * Fact ) * ScopeQuery { query := & ScopeQuery { config : c . config } query . path = func ( ctx context . Context ) ( fromV * sql . Selector , _ error ) { id := f . ID step := sqlgraph . NewStep ( sqlgraph . From ( fact . Table , fact . FieldID , id ) , sqlgraph . To ( scope . Table , scope . FieldID ) , sqlgraph . Edge ( sqlgraph . M2O , true , fact . ScopeTable , fact . ScopeColumn ) , ) fromV = sqlgraph . Neighbors ( f . driver . Dialect ( ) , step ) return fromV , nil } return query }
QueryScope queries the scope edge of a Fact.
QueryScope queries the scope edge of a Fact .