package queries import ( "context" "git.aiterp.net/rpdata/api/models" "git.aiterp.net/rpdata/api/models/unknownnicks" "git.aiterp.net/rpdata/api/graph2/input" ) /// Queries func (r *resolver) UnknownNicks(ctx context.Context, filter *input.UnknownNicksFilter) ([]models.UnknownNick, error) { limit := 100 if filter != nil { if filter.Limit > 0 { limit = filter.Limit } } return unknownnicks.List(limit) }