autocomplete manual mapping or advanced query

I want to use the autocomplete in version 8. 

The autocomplete is to searching for countries. I have a local variable "CountrySearch" and in the autocomplete OnNotify I have a query with the filter "Country.Name like "%" + CountrySearch + "%". 

In this version, there is no direct mapping, so it seems that we need to do the manual mapping (create two variables one record and another record list) or use an advanced query. But I'm not understanding how the advanced query replaces the manual mapping, do you know why the advanced query can replace the manual mapping?



Because in the advanced query you can define the output you want. In your case instead of returning the Country entity, you can return the Input_Autocomplete structure.