added spray patterns
This commit is contained in:
@@ -48,7 +48,7 @@ type Match struct {
|
||||
// MatchEdges holds the relations/edges for other nodes in the graph.
|
||||
type MatchEdges struct {
|
||||
// Stats holds the value of the stats edge.
|
||||
Stats []*Stats `json:"stats,omitempty"`
|
||||
Stats []*MatchPlayer `json:"stats,omitempty"`
|
||||
// Players holds the value of the players edge.
|
||||
Players []*Player `json:"players,omitempty"`
|
||||
// loadedTypes holds the information for reporting if a
|
||||
@@ -58,7 +58,7 @@ type MatchEdges struct {
|
||||
|
||||
// StatsOrErr returns the Stats value or an error if the edge
|
||||
// was not loaded in eager-loading.
|
||||
func (e MatchEdges) StatsOrErr() ([]*Stats, error) {
|
||||
func (e MatchEdges) StatsOrErr() ([]*MatchPlayer, error) {
|
||||
if e.loadedTypes[0] {
|
||||
return e.Stats, nil
|
||||
}
|
||||
@@ -186,7 +186,7 @@ func (m *Match) assignValues(columns []string, values []interface{}) error {
|
||||
}
|
||||
|
||||
// QueryStats queries the "stats" edge of the Match entity.
|
||||
func (m *Match) QueryStats() *StatsQuery {
|
||||
func (m *Match) QueryStats() *MatchPlayerQuery {
|
||||
return (&MatchClient{config: m.config}).QueryStats(m)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user