Getting an resultSet object of a different shape on React