{"action":"opened","issue":{"url":"https://api.github.com/repos/voltrb/volt/issues/269","labels_url":"https://api.github.com/repos/voltrb/volt/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/voltrb/volt/issues/269/comments","events_url":"https://api.github.com/repos/voltrb/volt/issues/269/events","html_url":"https://github.com/voltrb/volt/issues/269","id":101253426,"number":269,"title":"Promise Method Forwarding for count/length/size","user":{"login":"Qqwy","id":5345745,"avatar_url":"https://avatars.githubusercontent.com/u/5345745?v=3","gravatar_id":"","url":"https://api.github.com/users/Qqwy","html_url":"https://github.com/Qqwy","followers_url":"https://api.github.com/users/Qqwy/followers","following_url":"https://api.github.com/users/Qqwy/following{/other_user}","gists_url":"https://api.github.com/users/Qqwy/gists{/gist_id}","starred_url":"https://api.github.com/users/Qqwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qqwy/subscriptions","organizations_url":"https://api.github.com/users/Qqwy/orgs","repos_url":"https://api.github.com/users/Qqwy/repos","events_url":"https://api.github.com/users/Qqwy/events{/privacy}","received_events_url":"https://api.github.com/users/Qqwy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T11:15:37Z","updated_at":"2015-08-16T11:15:37Z","closed_at":null,"body":"I believe it is very common in client-side code that we want to know how many entries there are in a certain collection (X posts, X new chat messages). Right now, the following code works using Promise Method Forwarding (this is [from the docs](http://blog.voltframework.com/post/117031476149/volt-090-is-here-and-its-amazing) ), but this only works for fields of a model, not on collections of models.\r\n\r\n    store._items.first.then {|i| i._name }\r\n    store._items.first._name\r\n\r\nIt would be great if the following substitution would also work:\r\n\r\n    store._items.then {|items| items.size}\r\n    store._items.size\r\n\r\n(And the same for `#length`, which is an alias of `#size`. `#count` also provides the same functionality but can also be passed a block to count only entries that return true for this block)"}}