added spray patterns

This commit is contained in:
2021-10-31 08:40:02 +01:00
parent 268793f0e5
commit 978232dd0a
66 changed files with 16805 additions and 11903 deletions

View File

@@ -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)
}