Instead of making a query to userRes, make an HTTP request to the server.