{"action":"created","issue":{"url":"https://api.github.com/repos/aptivator/mongo-query-compiler/issues/1","repository_url":"https://api.github.com/repos/aptivator/mongo-query-compiler","labels_url":"https://api.github.com/repos/aptivator/mongo-query-compiler/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/aptivator/mongo-query-compiler/issues/1/comments","events_url":"https://api.github.com/repos/aptivator/mongo-query-compiler/issues/1/events","html_url":"https://github.com/aptivator/mongo-query-compiler/issues/1","id":243642719,"number":1,"title":"ObjectId comparison","user":{"login":"stalniy","id":1159966,"avatar_url":"https://avatars3.githubusercontent.com/u/1159966?v=4","gravatar_id":"","url":"https://api.github.com/users/stalniy","html_url":"https://github.com/stalniy","followers_url":"https://api.github.com/users/stalniy/followers","following_url":"https://api.github.com/users/stalniy/following{/other_user}","gists_url":"https://api.github.com/users/stalniy/gists{/gist_id}","starred_url":"https://api.github.com/users/stalniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stalniy/subscriptions","organizations_url":"https://api.github.com/users/stalniy/orgs","repos_url":"https://api.github.com/users/stalniy/repos","events_url":"https://api.github.com/users/stalniy/events{/privacy}","received_events_url":"https://api.github.com/users/stalniy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-18T08:46:23Z","updated_at":"2017-07-18T17:28:22Z","closed_at":null,"body":"this returns wrong result:\r\n```js\r\nconst ObjectId = require('mongoose').Types.ObjectId\r\nconst compile = require('mongo-query-compiler')\r\nconst id = ObjectId()\r\n\r\nconst matches = compile({ id })\r\n\r\nconsole.log(matches({ id: id.toString() })) //false\r\nconsole.log(matches({ id: ObjectId(id.toString()) })) //false\r\n```\r\nI expect both checks to return true. \r\n\r\nIs there anyway to check equality of `ObjectId`s?"},"comment":{"url":"https://api.github.com/repos/aptivator/mongo-query-compiler/issues/comments/316136810","html_url":"https://github.com/aptivator/mongo-query-compiler/issues/1#issuecomment-316136810","issue_url":"https://api.github.com/repos/aptivator/mongo-query-compiler/issues/1","id":316136810,"user":{"login":"stalniy","id":1159966,"avatar_url":"https://avatars3.githubusercontent.com/u/1159966?v=4","gravatar_id":"","url":"https://api.github.com/users/stalniy","html_url":"https://github.com/stalniy","followers_url":"https://api.github.com/users/stalniy/followers","following_url":"https://api.github.com/users/stalniy/following{/other_user}","gists_url":"https://api.github.com/users/stalniy/gists{/gist_id}","starred_url":"https://api.github.com/users/stalniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stalniy/subscriptions","organizations_url":"https://api.github.com/users/stalniy/orgs","repos_url":"https://api.github.com/users/stalniy/repos","events_url":"https://api.github.com/users/stalniy/events{/privacy}","received_events_url":"https://api.github.com/users/stalniy/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T17:28:22Z","updated_at":"2017-07-18T17:28:22Z","body":"Could you please point me to some place where I can read how to add customo functionality?"}}
{"actor":{"display_login":"stalniy"}}