When doing query, if the return data is an array, we also convert all item to
Entity