Closed riccardocescon closed 1 year ago
what do you think searchByTerm
?
users is duplicating the context:
usersService.getUsersByTerm(...)
by using search
:
usersService.searchByTerm(...)
Yeah that's pretty good, but what for the autocompleteUsernames?
autocompelte --> List
nice question, tbh idk, maybe getUsernameSuggestions
?
usersService.getUsernameSuggestions(term: 'ricc');
What about
usersService.searchByTerm(...)
and usersService.searchNamesByTerm(...)
?
seems pretty good, gotta update to this then.
autocomplete -> searchByTerm. autocompleteUsernames -> searchNamesByTerm.
Should we switch the 'autocomplete' api's name with 'getUsersByTerm'?