i am using angular resource sails. 

```
var items = sailsResource('roles').query(); // GET /item
$scope.roles = items;
angular.forEach($scope.roles, function(value, key) {
    console.log(key + ': ' + value);
});

```

output: undefined. 

How to parse this query?