package resolvers import ( "context" "git.aiterp.net/rpdata/api/graph2/graphcore" "git.aiterp.net/rpdata/api/models" ) /// Queries func (r *queryResolver) UnknownNicks(ctx context.Context, filter *graphcore.UnknownNicksFilter) ([]*models.UnknownNick, error) { limit := 20 if filter != nil { limit = filter.Limit } nicks := r.s.Logs.ListUnknownNicks() if limit > 0 && len(nicks) > limit { nicks = nicks[:limit] } return nicks, nil }