updated deps & goent
This commit is contained in:
@@ -157,7 +157,7 @@ func (mq *MatchQuery) FirstIDX(ctx context.Context) uint64 {
|
||||
}
|
||||
|
||||
// Only returns a single Match entity found by the query, ensuring it only returns one.
|
||||
// Returns a *NotSingularError when exactly one Match entity is not found.
|
||||
// Returns a *NotSingularError when more than one Match entity is found.
|
||||
// Returns a *NotFoundError when no Match entities are found.
|
||||
func (mq *MatchQuery) Only(ctx context.Context) (*Match, error) {
|
||||
nodes, err := mq.Limit(2).All(ctx)
|
||||
@@ -184,7 +184,7 @@ func (mq *MatchQuery) OnlyX(ctx context.Context) *Match {
|
||||
}
|
||||
|
||||
// OnlyID is like Only, but returns the only Match ID in the query.
|
||||
// Returns a *NotSingularError when exactly one Match ID is not found.
|
||||
// Returns a *NotSingularError when more than one Match ID is found.
|
||||
// Returns a *NotFoundError when no entities are found.
|
||||
func (mq *MatchQuery) OnlyID(ctx context.Context) (id uint64, err error) {
|
||||
var ids []uint64
|
||||
@@ -295,8 +295,9 @@ func (mq *MatchQuery) Clone() *MatchQuery {
|
||||
withStats: mq.withStats.Clone(),
|
||||
withPlayers: mq.withPlayers.Clone(),
|
||||
// clone intermediate query.
|
||||
sql: mq.sql.Clone(),
|
||||
path: mq.path,
|
||||
sql: mq.sql.Clone(),
|
||||
path: mq.path,
|
||||
unique: mq.unique,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user