How to create a server side autocomplete

Hello, I'm trying to create a server-side autocomplete, this seems borderline impossible right now

Using a select I want the user to be able to type to search in the select and while typing query the server for results

To do this I use the .searchValue property of the select in a query and then I use the results of that query in the select values, sometimes this works (poorly) sometimes I get a cyclic dependency error (which I don't see why, the serachValue and the select values should not be dependent...)