{"action":"created","comment":{"url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/comments/39334088","id":39334088,"diff_hunk":"@@ -46,6 +46,10 @@ Just call the `.find(type, id)` method of your store.\n ```javascript\n var article = store.find('article', 123);\n ```\n+or call the `.find(type)` method of your store to get all the models of that type.","path":"README.md","position":4,"original_position":4,"commit_id":"64eba476e732adad1318c5c5298c9f249c84a07e","original_commit_id":"64eba476e732adad1318c5c5298c9f249c84a07e","user":{"login":"beauby","id":2215778,"avatar_url":"https://avatars.githubusercontent.com/u/2215778?v=3","gravatar_id":"","url":"https://api.github.com/users/beauby","html_url":"https://github.com/beauby","followers_url":"https://api.github.com/users/beauby/followers","following_url":"https://api.github.com/users/beauby/following{/other_user}","gists_url":"https://api.github.com/users/beauby/gists{/gist_id}","starred_url":"https://api.github.com/users/beauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beauby/subscriptions","organizations_url":"https://api.github.com/users/beauby/orgs","repos_url":"https://api.github.com/users/beauby/repos","events_url":"https://api.github.com/users/beauby/events{/privacy}","received_events_url":"https://api.github.com/users/beauby/received_events","type":"User","site_admin":false},"body":"Here you refer to `.find(type)`, but you probably mean `.findAll(type)`, right?","created_at":"2015-09-12T04:39:14Z","updated_at":"2015-09-12T04:39:14Z","html_url":"https://github.com/beauby/jsonapi-datastore/pull/2#discussion_r39334088","pull_request_url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/comments/39334088"},"html":{"href":"https://github.com/beauby/jsonapi-datastore/pull/2#discussion_r39334088"},"pull_request":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2","id":44820522,"html_url":"https://github.com/beauby/jsonapi-datastore/pull/2","diff_url":"https://github.com/beauby/jsonapi-datastore/pull/2.diff","patch_url":"https://github.com/beauby/jsonapi-datastore/pull/2.patch","issue_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/2","number":2,"state":"open","locked":false,"title":"add findAll by type to the store class","user":{"login":"jprincipe","id":864799,"avatar_url":"https://avatars.githubusercontent.com/u/864799?v=3","gravatar_id":"","url":"https://api.github.com/users/jprincipe","html_url":"https://github.com/jprincipe","followers_url":"https://api.github.com/users/jprincipe/followers","following_url":"https://api.github.com/users/jprincipe/following{/other_user}","gists_url":"https://api.github.com/users/jprincipe/gists{/gist_id}","starred_url":"https://api.github.com/users/jprincipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprincipe/subscriptions","organizations_url":"https://api.github.com/users/jprincipe/orgs","repos_url":"https://api.github.com/users/jprincipe/repos","events_url":"https://api.github.com/users/jprincipe/events{/privacy}","received_events_url":"https://api.github.com/users/jprincipe/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-11T19:35:50Z","updated_at":"2015-09-12T04:39:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5efb82e9ab5885105271930c202bd3655dbcf6fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2/commits","review_comments_url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2/comments","review_comment_url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/2/comments","statuses_url":"https://api.github.com/repos/beauby/jsonapi-datastore/statuses/64eba476e732adad1318c5c5298c9f249c84a07e","head":{"label":"jprincipe:master","ref":"master","sha":"64eba476e732adad1318c5c5298c9f249c84a07e","user":{"login":"jprincipe","id":864799,"avatar_url":"https://avatars.githubusercontent.com/u/864799?v=3","gravatar_id":"","url":"https://api.github.com/users/jprincipe","html_url":"https://github.com/jprincipe","followers_url":"https://api.github.com/users/jprincipe/followers","following_url":"https://api.github.com/users/jprincipe/following{/other_user}","gists_url":"https://api.github.com/users/jprincipe/gists{/gist_id}","starred_url":"https://api.github.com/users/jprincipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprincipe/subscriptions","organizations_url":"https://api.github.com/users/jprincipe/orgs","repos_url":"https://api.github.com/users/jprincipe/repos","events_url":"https://api.github.com/users/jprincipe/events{/privacy}","received_events_url":"https://api.github.com/users/jprincipe/received_events","type":"User","site_admin":false},"repo":{"id":42323760,"name":"jsonapi-datastore","full_name":"jprincipe/jsonapi-datastore","owner":{"login":"jprincipe","id":864799,"avatar_url":"https://avatars.githubusercontent.com/u/864799?v=3","gravatar_id":"","url":"https://api.github.com/users/jprincipe","html_url":"https://github.com/jprincipe","followers_url":"https://api.github.com/users/jprincipe/followers","following_url":"https://api.github.com/users/jprincipe/following{/other_user}","gists_url":"https://api.github.com/users/jprincipe/gists{/gist_id}","starred_url":"https://api.github.com/users/jprincipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprincipe/subscriptions","organizations_url":"https://api.github.com/users/jprincipe/orgs","repos_url":"https://api.github.com/users/jprincipe/repos","events_url":"https://api.github.com/users/jprincipe/events{/privacy}","received_events_url":"https://api.github.com/users/jprincipe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jprincipe/jsonapi-datastore","description":"JavaScript client-side JSON API data handling made easy.","fork":true,"url":"https://api.github.com/repos/jprincipe/jsonapi-datastore","forks_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/forks","keys_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/teams","hooks_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/hooks","issue_events_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/issues/events{/number}","events_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/events","assignees_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/assignees{/user}","branches_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/branches{/branch}","tags_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/tags","blobs_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/git/refs{/sha}","trees_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/statuses/{sha}","languages_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/languages","stargazers_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/stargazers","contributors_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/contributors","subscribers_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/subscribers","subscription_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/subscription","commits_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/commits{/sha}","git_commits_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/git/commits{/sha}","comments_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/comments{/number}","issue_comment_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/issues/comments{/number}","contents_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/contents/{+path}","compare_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/merges","archive_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/downloads","issues_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/issues{/number}","pulls_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/pulls{/number}","milestones_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/milestones{/number}","notifications_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/labels{/name}","releases_url":"https://api.github.com/repos/jprincipe/jsonapi-datastore/releases{/id}","created_at":"2015-09-11T17:52:18Z","updated_at":"2015-09-11T17:52:18Z","pushed_at":"2015-09-12T02:09:58Z","git_url":"git://github.com/jprincipe/jsonapi-datastore.git","ssh_url":"git@github.com:jprincipe/jsonapi-datastore.git","clone_url":"https://github.com/jprincipe/jsonapi-datastore.git","svn_url":"https://github.com/jprincipe/jsonapi-datastore","homepage":"","size":188,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"beauby:master","ref":"master","sha":"7fcc04353ce592235804e8704a09d10881b429ca","user":{"login":"beauby","id":2215778,"avatar_url":"https://avatars.githubusercontent.com/u/2215778?v=3","gravatar_id":"","url":"https://api.github.com/users/beauby","html_url":"https://github.com/beauby","followers_url":"https://api.github.com/users/beauby/followers","following_url":"https://api.github.com/users/beauby/following{/other_user}","gists_url":"https://api.github.com/users/beauby/gists{/gist_id}","starred_url":"https://api.github.com/users/beauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beauby/subscriptions","organizations_url":"https://api.github.com/users/beauby/orgs","repos_url":"https://api.github.com/users/beauby/repos","events_url":"https://api.github.com/users/beauby/events{/privacy}","received_events_url":"https://api.github.com/users/beauby/received_events","type":"User","site_admin":false},"repo":{"id":40829457,"name":"jsonapi-datastore","full_name":"beauby/jsonapi-datastore","owner":{"login":"beauby","id":2215778,"avatar_url":"https://avatars.githubusercontent.com/u/2215778?v=3","gravatar_id":"","url":"https://api.github.com/users/beauby","html_url":"https://github.com/beauby","followers_url":"https://api.github.com/users/beauby/followers","following_url":"https://api.github.com/users/beauby/following{/other_user}","gists_url":"https://api.github.com/users/beauby/gists{/gist_id}","starred_url":"https://api.github.com/users/beauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beauby/subscriptions","organizations_url":"https://api.github.com/users/beauby/orgs","repos_url":"https://api.github.com/users/beauby/repos","events_url":"https://api.github.com/users/beauby/events{/privacy}","received_events_url":"https://api.github.com/users/beauby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beauby/jsonapi-datastore","description":"JavaScript client-side JSON API data handling made easy.","fork":false,"url":"https://api.github.com/repos/beauby/jsonapi-datastore","forks_url":"https://api.github.com/repos/beauby/jsonapi-datastore/forks","keys_url":"https://api.github.com/repos/beauby/jsonapi-datastore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beauby/jsonapi-datastore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beauby/jsonapi-datastore/teams","hooks_url":"https://api.github.com/repos/beauby/jsonapi-datastore/hooks","issue_events_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/events{/number}","events_url":"https://api.github.com/repos/beauby/jsonapi-datastore/events","assignees_url":"https://api.github.com/repos/beauby/jsonapi-datastore/assignees{/user}","branches_url":"https://api.github.com/repos/beauby/jsonapi-datastore/branches{/branch}","tags_url":"https://api.github.com/repos/beauby/jsonapi-datastore/tags","blobs_url":"https://api.github.com/repos/beauby/jsonapi-datastore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beauby/jsonapi-datastore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beauby/jsonapi-datastore/git/refs{/sha}","trees_url":"https://api.github.com/repos/beauby/jsonapi-datastore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beauby/jsonapi-datastore/statuses/{sha}","languages_url":"https://api.github.com/repos/beauby/jsonapi-datastore/languages","stargazers_url":"https://api.github.com/repos/beauby/jsonapi-datastore/stargazers","contributors_url":"https://api.github.com/repos/beauby/jsonapi-datastore/contributors","subscribers_url":"https://api.github.com/repos/beauby/jsonapi-datastore/subscribers","subscription_url":"https://api.github.com/repos/beauby/jsonapi-datastore/subscription","commits_url":"https://api.github.com/repos/beauby/jsonapi-datastore/commits{/sha}","git_commits_url":"https://api.github.com/repos/beauby/jsonapi-datastore/git/commits{/sha}","comments_url":"https://api.github.com/repos/beauby/jsonapi-datastore/comments{/number}","issue_comment_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/comments{/number}","contents_url":"https://api.github.com/repos/beauby/jsonapi-datastore/contents/{+path}","compare_url":"https://api.github.com/repos/beauby/jsonapi-datastore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beauby/jsonapi-datastore/merges","archive_url":"https://api.github.com/repos/beauby/jsonapi-datastore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beauby/jsonapi-datastore/downloads","issues_url":"https://api.github.com/repos/beauby/jsonapi-datastore/issues{/number}","pulls_url":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls{/number}","milestones_url":"https://api.github.com/repos/beauby/jsonapi-datastore/milestones{/number}","notifications_url":"https://api.github.com/repos/beauby/jsonapi-datastore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beauby/jsonapi-datastore/labels{/name}","releases_url":"https://api.github.com/repos/beauby/jsonapi-datastore/releases{/id}","created_at":"2015-08-16T17:10:10Z","updated_at":"2015-09-08T03:18:13Z","pushed_at":"2015-09-11T19:35:51Z","git_url":"git://github.com/beauby/jsonapi-datastore.git","ssh_url":"git@github.com:beauby/jsonapi-datastore.git","clone_url":"https://github.com/beauby/jsonapi-datastore.git","svn_url":"https://github.com/beauby/jsonapi-datastore","homepage":"","size":308,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2"},"html":{"href":"https://github.com/beauby/jsonapi-datastore/pull/2"},"issue":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/2"},"comments":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/beauby/jsonapi-datastore/statuses/64eba476e732adad1318c5c5298c9f249c84a07e"}}}}