{"action":"created","issue":{"url":"https://api.github.com/repos/js-data/js-data/issues/255","labels_url":"https://api.github.com/repos/js-data/js-data/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/js-data/js-data/issues/255/comments","events_url":"https://api.github.com/repos/js-data/js-data/issues/255/events","html_url":"https://github.com/js-data/js-data/issues/255","id":113944247,"number":255,"title":"Filter behaviour changed unexpectedly","user":{"login":"rbao","id":2549257,"avatar_url":"https://avatars.githubusercontent.com/u/2549257?v=3","gravatar_id":"","url":"https://api.github.com/users/rbao","html_url":"https://github.com/rbao","followers_url":"https://api.github.com/users/rbao/followers","following_url":"https://api.github.com/users/rbao/following{/other_user}","gists_url":"https://api.github.com/users/rbao/gists{/gist_id}","starred_url":"https://api.github.com/users/rbao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbao/subscriptions","organizations_url":"https://api.github.com/users/rbao/orgs","repos_url":"https://api.github.com/users/rbao/repos","events_url":"https://api.github.com/users/rbao/events{/privacy}","received_events_url":"https://api.github.com/users/rbao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-28T23:02:54Z","updated_at":"2015-10-28T23:19:40Z","closed_at":"2015-10-28T23:19:40Z","body":"First of all, thanks for a great library!\r\n\r\nHere is the code (plunker included at bottom)\r\n```\r\nvar store = new JSData.DS();\r\n\r\nvar Post = store.defineResource('post');\r\nvar User = store.defineResource('user');\r\n\r\nvar post = { id: 1 };\r\nvar user = { id: 1 };\r\n\r\nvar post = Post.inject(post);\r\nvar user = User.inject(user);\r\n\r\npost.author = user;\r\n\r\nconsole.log(\"All Post: \", Post.getAll());\r\nconsole.log(\"All User: \", User.getAll());\r\nconsole.log(\"Filtered: \", Post.filter({ author: user}));\r\n```\r\n\r\nThe above code when run in 2.3.0 outputs the following\r\n```\r\nAll Post:  [Post]\r\nAll User:  [User]\r\nFiltered:  [Post]\r\n```\r\nThis is as expected\r\n\r\nHowever the above code when run in  > 2.3.0 outputs the following\r\n```\r\nAll Post:  [Post]\r\nAll User:  [User]\r\nFiltered:  []\r\n```\r\nNote everything is filtered out where it suppose to return a single post with the specified author.\r\n\r\nI did not see anything regarding filter been changed in the CHANGELOG so I am wondering why this behaviour has changed? Am I doing something wrong?\r\n\r\n[plunker](http://plnkr.co/edit/4XPtjK0WvfsqH0uHrXeF?p=preview)"},"comment":{"url":"https://api.github.com/repos/js-data/js-data/issues/comments/152026574","html_url":"https://github.com/js-data/js-data/issues/255#issuecomment-152026574","issue_url":"https://api.github.com/repos/js-data/js-data/issues/255","id":152026574,"user":{"login":"rbao","id":2549257,"avatar_url":"https://avatars.githubusercontent.com/u/2549257?v=3","gravatar_id":"","url":"https://api.github.com/users/rbao","html_url":"https://github.com/rbao","followers_url":"https://api.github.com/users/rbao/followers","following_url":"https://api.github.com/users/rbao/following{/other_user}","gists_url":"https://api.github.com/users/rbao/gists{/gist_id}","starred_url":"https://api.github.com/users/rbao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbao/subscriptions","organizations_url":"https://api.github.com/users/rbao/orgs","repos_url":"https://api.github.com/users/rbao/repos","events_url":"https://api.github.com/users/rbao/events{/privacy}","received_events_url":"https://api.github.com/users/rbao/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T23:19:40Z","updated_at":"2015-10-28T23:19:40Z","body":"got it, thanks"}}